diff options
Diffstat (limited to 'core_modules/fb_alpha.hmod/bin/fba')
-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 "$@" |