From 428898fd2a0988a15d034538d72dc561ccdbf4eb Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Wed, 3 Jan 2024 12:26:15 +0100 Subject: [PATCH] Fix MegaCart detection --- platforms/desktop-shared/gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platforms/desktop-shared/gui.cpp b/platforms/desktop-shared/gui.cpp index 9dbd23d..81fe726 100644 --- a/platforms/desktop-shared/gui.cpp +++ b/platforms/desktop-shared/gui.cpp @@ -192,6 +192,7 @@ void gui_load_rom(const char* path) Cartridge::ForceConfiguration config; config.region = get_region(config_emulator.region); + config.type = Cartridge::CartridgeNotSupported; push_recent_rom(path); emu_resume(); @@ -1005,6 +1006,7 @@ static void file_dialog_load_ram(void) { Cartridge::ForceConfiguration config; config.region = get_region(config_emulator.region); + config.type = Cartridge::CartridgeNotSupported; emu_load_ram(file_dialog.selected_path.c_str(), config); } @@ -1371,6 +1373,7 @@ static void menu_reset(void) Cartridge::ForceConfiguration config; config.region = get_region(config_emulator.region); + config.type = Cartridge::CartridgeNotSupported; emu_reset(config);