From 6ca8cca54aef31051a8b80d3c5fe563d4a1831d0 Mon Sep 17 00:00:00 2001 From: pcm720 Date: Thu, 2 Mar 2017 13:03:17 +0300 Subject: Automatically handle neogeo.zip for every game launched with FBAlpha --- core_modules/fb_alpha.hmod/bin/fba | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 "$@" -- cgit v1.2.3