Skip to content

Commit

Permalink
Fix MegaCart detection
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jan 3, 2024
1 parent 6a7fa06 commit 428898f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platforms/desktop-shared/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 428898f

Please sign in to comment.