From 6a7722648e2aecb6c7049c44c89bb8a96dedd3d8 Mon Sep 17 00:00:00 2001 From: Shaun Inman Date: Sun, 26 Feb 2023 16:52:18 -0500 Subject: [PATCH] created a separate tag for Super Game Boy so it can have independent settings from Game Boy Advance --- makefile | 1 + .../{Roms/Super Game Boy (MGBA) => Bios/SGB}/.keep | 0 skeleton/EXTRAS/Emus/rg35xx/SGB.pak/launch.sh | 14 ++++++++++++++ skeleton/EXTRAS/Roms/Super Game Boy (SBG)/.keep | 0 skeleton/EXTRAS/Saves/SGB/.keep | 0 5 files changed, 15 insertions(+) rename skeleton/EXTRAS/{Roms/Super Game Boy (MGBA) => Bios/SGB}/.keep (100%) create mode 100755 skeleton/EXTRAS/Emus/rg35xx/SGB.pak/launch.sh create mode 100644 skeleton/EXTRAS/Roms/Super Game Boy (SBG)/.keep create mode 100644 skeleton/EXTRAS/Saves/SGB/.keep diff --git a/makefile b/makefile index ff23ae1..22978ec 100644 --- a/makefile +++ b/makefile @@ -82,6 +82,7 @@ bundle: cp ./cores/output/fake08_libretro.so ./build/EXTRAS/Emus/rg35xx/P8.pak cp ./cores/output/mgba_libretro.so ./build/EXTRAS/Emus/rg35xx/MGBA.pak cp ./cores/output/mednafen_vb_libretro.so ./build/EXTRAS/Emus/rg35xx/VB.pak + cp ./cores/output/mgba_libretro.so ./build/EXTRAS/Emus/rg35xx/SGB.pak cp ./cores/output/mednafen_supafaust_libretro.so ./build/EXTRAS/Emus/rg35xx/SUPA.pak cp ./cores/output/pokemini_libretro.so ./build/EXTRAS/Emus/rg35xx/PKM.pak cp ./other/DinguxCommander/output/DinguxCommander ./build/EXTRAS/Tools/rg35xx/Files.pak diff --git a/skeleton/EXTRAS/Roms/Super Game Boy (MGBA)/.keep b/skeleton/EXTRAS/Bios/SGB/.keep similarity index 100% rename from skeleton/EXTRAS/Roms/Super Game Boy (MGBA)/.keep rename to skeleton/EXTRAS/Bios/SGB/.keep diff --git a/skeleton/EXTRAS/Emus/rg35xx/SGB.pak/launch.sh b/skeleton/EXTRAS/Emus/rg35xx/SGB.pak/launch.sh new file mode 100755 index 0000000..eb34ffc --- /dev/null +++ b/skeleton/EXTRAS/Emus/rg35xx/SGB.pak/launch.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +EMU_EXE=mgba +CORES_PATH=$(dirname "$0") + +############################### + +EMU_TAG=$(basename "$(dirname "$0")" .pak) +ROM="$1" +mkdir -p "$BIOS_PATH/$EMU_TAG" +mkdir -p "$SAVES_PATH/$EMU_TAG" +HOME="$USERDATA_PATH" +cd "$HOME" +minarch.elf "$CORES_PATH/${EMU_EXE}_libretro.so" "$ROM" DMG &> "$LOGS_PATH/$EMU_TAG.txt" diff --git a/skeleton/EXTRAS/Roms/Super Game Boy (SBG)/.keep b/skeleton/EXTRAS/Roms/Super Game Boy (SBG)/.keep new file mode 100644 index 0000000..e69de29 diff --git a/skeleton/EXTRAS/Saves/SGB/.keep b/skeleton/EXTRAS/Saves/SGB/.keep new file mode 100644 index 0000000..e69de29