allow screen stretching to be overridden when using widescreen cheat

Issue #870
This commit is contained in:
Flyinghead 2023-01-15 11:14:21 +01:00
parent 52f2ca7ff6
commit 13428ba696
1 changed files with 3 additions and 4 deletions

View File

@ -550,18 +550,17 @@ void Emulator::loadGame(const char *path, LoadProgress *progress)
}
mcfg_DestroyDevices();
mcfg_CreateDevices();
if (settings.platform.isNaomi()) {
if (settings.platform.isNaomi())
// Must be done after the maple devices are created and EEPROM is accessible
naomi_cart_ConfigureEEPROM();
// and reload settings so that eeprom-based settings can be overridden
loadGameSpecificSettings();
}
cheatManager.reset(settings.content.gameId);
if (cheatManager.isWidescreen())
{
gui_display_notification("Widescreen cheat activated", 1000);
config::ScreenStretching.override(134); // 4:3 -> 16:9
}
// reload settings so that all settings can be overridden
loadGameSpecificSettings();
NetworkHandshake::init();
settings.input.fastForwardMode = false;
if (!settings.content.path.empty())