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
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-02-22 17:03:54 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-02-22 17:03:54 +0300
commit1c110985ebf3c65928ab976de83067149cce2946 (patch)
tree12a82fa78254ccbe3be13dbe06cc3296ef06b785 /mods/mod_hakchi/hakchi/rootfs/etc/preinit.d
parentdca65b2c83fd8376fc0b20cfb794edb74c96c0a8 (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_functions3
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=''