diff --git a/static/packages/Emu/Nintendo - GBA (gpSP)/Emu/GBA/launch.sh b/static/packages/Emu/Nintendo - GBA (gpSP)/Emu/GBA/launch.sh index ec0c35c88..ef79de521 100644 --- a/static/packages/Emu/Nintendo - GBA (gpSP)/Emu/GBA/launch.sh +++ b/static/packages/Emu/Nintendo - GBA (gpSP)/Emu/GBA/launch.sh @@ -18,28 +18,9 @@ mgba_save="$savedir/mGBA/$romname.srm" default_core=gpsp # check if gpSP save states exist -if [ ! -f "$gpsp_state" ] && [ ! -f "$gpsp_save" ]; then - if [ -f "$mgba_save" ]; then - LD_PRELOAD=/mnt/SDCARD/miyoo/lib/libpadsp.so /mnt/SDCARD/.tmp_update/bin/prompt -r \ - -t "GBA CORE CHANGED" \ - -m "Default GBA core is now gpSP.\nYou have an mGBA save file\nfor this game." \ - "Transfer save to gpSP" \ - "Keep playing with mGBA" +if [ ! -f "$gpsp_state" ] && [ ! -f "$gpsp_save" ] && [ [ -f "$mgba_state" ] || [ -f "$mgba_save" ] ]; then + default_core=mgba - retcode=$? - - if [ $retcode -eq 0 ]; then - cp "$mgba_save" "$savedir/gpSP" - else - default_core=mgba - fi - elif [ -f "$mgba_state" ]; then - default_core=mgba - fi -fi - -# if core is mgba, create a config file -if [ "$default_core" = "mgba" ]; then mkdir -p "$homedir/.game_config" echo "core = \"mgba_libretro\"" > "$romcfgpath" fi