Made Gamemode a non dynamic setting again after thinking about Steam impl. Gamemode Works on normal emulator launch and with custom configs.

This commit is contained in:
adas20 2025-06-27 12:29:11 -04:00
parent 9332aba334
commit 6b2d2e35e4
2 changed files with 6 additions and 1 deletions

View file

@ -2478,6 +2478,11 @@ void Emulator::Run(bool start_playtime)
{
Emu.GetCallbacks().enable_display_sleep(false);
}
if (g_cfg.misc.enable_gamemode)
{
Emu.GetCallbacks().enable_gamemode(true);
}
}
void Emulator::RunPPU()

View file

@ -358,7 +358,7 @@ struct cfg_root : cfg::node
cfg::_bool silence_all_logs{ this, "Silence All Logs", false, true };
cfg::string title_format{ this, "Window Title Format", "FPS: %F | %R | %V | %T [%t]", true };
cfg::_bool pause_during_home_menu{this, "Pause Emulation During Home Menu", false, false };
cfg::_bool enable_gamemode{ this, "Enable GameMode", false, true };
cfg::_bool enable_gamemode{ this, "Enable GameMode", false, false };
} misc{ this };