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/mod_hakchi/hakchi/rootfs/etc/preinit.d | |
parent | dca65b2c83fd8376fc0b20cfb794edb74c96c0a8 (diff) |
More fixes
Diffstat (limited to 'mods/mod_hakchi/hakchi/rootfs/etc/preinit.d')
-rw-r--r-- | mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions | 3 |
1 files changed, 2 insertions, 1 deletions
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='' |