Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mods
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-02-22 16:15:54 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-02-22 16:15:54 +0300
commitdca65b2c83fd8376fc0b20cfb794edb74c96c0a8 (patch)
tree39dc7e45f396e25b24d660dc3ffb18dd65a5ea98 /mods
parentb565a2cd1d34afebcc7ec9ce6e29fee080f8e6c8 (diff)
Fixes, fixes, fixes
Diffstat (limited to 'mods')
-rw-r--r--mods/mod_hakchi/hakchi/rootfs/etc/preinit2
-rw-r--r--mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions7
-rw-r--r--mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb2
3 files changed, 6 insertions, 5 deletions
diff --git a/mods/mod_hakchi/hakchi/rootfs/etc/preinit b/mods/mod_hakchi/hakchi/rootfs/etc/preinit
index 5b9959bb..6db9971c 100644
--- a/mods/mod_hakchi/hakchi/rootfs/etc/preinit
+++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit
@@ -55,6 +55,6 @@ script_init(){
preinit(){
source_base
- mount_base
+ mountSquash # for backward compatibility
source_parts "$preinit.d/p????_*"
}
diff --git a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions
index 1e670812..b29eda8c 100644
--- a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions
+++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions
@@ -253,9 +253,9 @@ softwareCheck(){
repair_fonts(){
if [ "$sftype" == "nes" ]; then
- mkdir -p "$1" || return 1
- copy "$rootfs$gamepath/title.fnt" "$1/" || copy "$squashfs$gamepath/title.fnt" "$1/"
- copy "$rootfs$gamepath/copyright.fnt" "$1/" || copy "$squashfs$gamepath/copyright.fnt" "$1/"
+ mkdir -p "$1" || return 1
+ ( [ $cfg_fontfix_enabled == "y" ] && copy "$rootfs/usr/share/fonts/title.fnt" "$1/" ) || copy "$rootfs$gamepath/title.fnt" "$1/" || copy "$squashfs$gamepath/title.fnt" "$1/"
+ copy "$squashfs$gamepath/copyright.fnt" "$1/"
fi
}
@@ -263,6 +263,7 @@ repair_games(){
[ -w "$1" ] || return 0
[ -f "$1/.repair.flag" ] || return 0
cat "$rootfs/etc/pleasewait.fb" | gunzip -c - > "/dev/fb0"
+ echo repairing games...
local usesymlink=''
ln -s / "$1/symlinktest" 2>/dev/null && rm -f "$1/symlinktest" && usesymlink='y'
diff --git a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb
index 6a5d60ca..5f1ce6ad 100644
--- a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb
+++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0040_usb
@@ -65,7 +65,7 @@ checkStorageDevice(){
fi
local need_repair=""
- [ -d "$mountpoint/media/$games" ] && ! [ -z "$(find $mountpoint/media/$games -name .repair.flag -maxdepth 2)" ] && need_repair=y
+ [ -d "$mountpoint/media/$modname/games" ] && ! [ -z "$(find $mountpoint/media/$modname/games -name .repair.flag -maxdepth 2)" ] && need_repair=y
if [ -d "$mountpoint/media/$saves" ] || [ -d "$mountpoint/media/$modname/transfer" ] || [ "$cfg_usb_rw" == "y" ] || [ "$need_repair" == "y" ]; then
umount "$mountpoint/media" 2>/dev/null