diff options
author | pcm720 <pcm720@gmail.com> | 2017-03-02 13:03:17 +0300 |
---|---|---|
committer | pcm720 <pcm720@gmail.com> | 2017-03-02 13:03:17 +0300 |
commit | 6ca8cca54aef31051a8b80d3c5fe563d4a1831d0 (patch) | |
tree | e6388ebe72329df580e566e15751d17f75bf4cc4 | |
parent | 19323d504cd571f5e621cb2ca0b9031a375d94c2 (diff) |
Automatically handle neogeo.zip for every game launched with FBAlpha0.5
-rwxr-xr-x | core_modules/fb_alpha.hmod/bin/fba | 11 |
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 "$@" |