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

github.com/ClusterM/retroarch-clover.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpcm720 <pcm720@gmail.com>2017-03-02 13:03:17 +0300
committerpcm720 <pcm720@gmail.com>2017-03-02 13:03:17 +0300
commit6ca8cca54aef31051a8b80d3c5fe563d4a1831d0 (patch)
treee6388ebe72329df580e566e15751d17f75bf4cc4
parent19323d504cd571f5e621cb2ca0b9031a375d94c2 (diff)
Automatically handle neogeo.zip for every game launched with FBAlpha0.5
-rwxr-xr-xcore_modules/fb_alpha.hmod/bin/fba11
1 files changed, 11 insertions, 0 deletions
diff --git a/core_modules/fb_alpha.hmod/bin/fba b/core_modules/fb_alpha.hmod/bin/fba
index 686f601..39679e5 100755
--- a/core_modules/fb_alpha.hmod/bin/fba
+++ b/core_modules/fb_alpha.hmod/bin/fba
@@ -1,2 +1,13 @@
#!/bin/sh
+system="/etc/libretro/system"
+rom=$1
+game_path=$(dirname "$rom")
+
+if [ ! -f "$system/neogeo.zip" ]; then
+ [ -f "$game_path/neogeo.zip" ] && mv "$game_path/neogeo.zip" "$system/neogeo.zip" && ln -s "$system/neogeo.zip" "$game_path/neogeo.zip"
+else
+ [ -f "$game_path/neogeo.zip" ] && [ ! -L "$game_path/neogeo.zip" ] && rm "$game_path/neogeo.zip"
+ [ ! -f "$game_path/neogeo.zip" ] && ln -s "$system/neogeo.zip" "$game_path/neogeo.zip"
+fi
+
exec retroarch-clover fb_alpha "$@"