diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2018-02-22 17:03:54 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2018-02-22 17:03:54 +0300 |
commit | 1c110985ebf3c65928ab976de83067149cce2946 (patch) | |
tree | 12a82fa78254ccbe3be13dbe06cc3296ef06b785 /mods | |
parent | dca65b2c83fd8376fc0b20cfb794edb74c96c0a8 (diff) |
More fixes
Diffstat (limited to 'mods')
-rwxr-xr-x | mods/mod_hakchi/hakchi/rootfs/bin/hsqs | 4 | ||||
-rw-r--r-- | mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mods/mod_hakchi/hakchi/rootfs/bin/hsqs b/mods/mod_hakchi/hakchi/rootfs/bin/hsqs index 041654fc..879904c5 100755 --- a/mods/mod_hakchi/hakchi/rootfs/bin/hsqs +++ b/mods/mod_hakchi/hakchi/rootfs/bin/hsqs @@ -19,6 +19,10 @@ save_config [ "$(currentFirmware)" == "$firmware" ] && exit 0 [ "$(currentFirmware)" == "auto" ] && exit 0 #? +state_path="/var/saves/$modname" +state_file="$state_path/menu" +rm -f $state_file + echo "changing firmware to: $firmware" reboot exit 0 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 b29eda8c..af2cbe81 100644 --- a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions +++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions @@ -254,14 +254,15 @@ softwareCheck(){ repair_fonts(){ if [ "$sftype" == "nes" ]; then mkdir -p "$1" || return 1 + [ -w "$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 } repair_games(){ - [ -w "$1" ] || return 0 [ -f "$1/.repair.flag" ] || return 0 + [ -w "$1" ] || return 1 cat "$rootfs/etc/pleasewait.fb" | gunzip -c - > "/dev/fb0" echo repairing games... local usesymlink='' |