From 182b7bcd6d396945b7734ab4380913b8e735db74 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 13 Oct 2023 10:21:24 +0200 Subject: [PATCH] MAME: initialized prepare and open emulator --- functions/prepare_emulator.sh | 11 +++++++++++ tools/configurator.sh | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/functions/prepare_emulator.sh b/functions/prepare_emulator.sh index 0f880fe3..cc1ecf23 100644 --- a/functions/prepare_emulator.sh +++ b/functions/prepare_emulator.sh @@ -667,6 +667,17 @@ prepare_emulator() { fi fi + if [[ "$emulator" =~ ^(mame|MAME|all)$ ]]; then + # TODO: do a proper script + # This is just a placeholder script to test the emulator's flow + echo "----------------------" + echo "Initializing MAME" + echo "----------------------" + + # TODO: something + + fi + # Update presets for all emulators after any reset or move if [[ ! "$emulator" == "retrodeck" ]]; then build_retrodeck_current_presets diff --git a/tools/configurator.sh b/tools/configurator.sh index 52813c3e..9e670a4b 100644 --- a/tools/configurator.sh +++ b/tools/configurator.sh @@ -29,6 +29,7 @@ source /app/libexec/global.sh # - Citra # - Dolphin # - Duckstation +# - MAME # - MelonDS # - PCSX2 # - PPSSPP @@ -435,6 +436,7 @@ configurator_open_emulator_dialog() { "Citra" "Open the N3DS emulator Citra" \ "Dolphin" "Open the Wii & GC emulator Dolphin" \ "Duckstation" "Open the PSX emulator Duckstation" \ + "MAME" "Open the Multiple Arcade Machine Emulator emulator MAME" \ "MelonDS" "Open the NDS emulator MelonDS" \ "PCSX2" "Open the PS2 emulator PSXC2" \ "PPSSPP" "Open the PSP emulator PPSSPP" \ @@ -466,6 +468,10 @@ configurator_open_emulator_dialog() { duckstation-qt ;; + "MAME" ) + mame + ;; + "MelonDS" ) melonDS ;;