System: Clear cheat list on reset

This commit is contained in:
Stenzek 2024-02-06 22:24:33 +09:00
parent eafa5d41bb
commit 8e7b212b03
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -74,7 +74,7 @@ void Logout();
/// Called when the system changes game, or is booting.
void GameChanged(const std::string& path, CDImage* image);
/// Re-enables hardcode mode if it is enabled in the settings.
/// Re-enables hardcore mode if it is enabled in the settings.
bool ResetHardcoreMode();
/// Forces hardcore mode off until next reset.

View file

@ -1084,7 +1084,12 @@ void System::ResetSystem()
return;
if (Achievements::ResetHardcoreMode())
{
// Make sure a pre-existing cheat file hasn't been loaded when resetting
// after enabling HC mode.
s_cheat_list.reset();
ApplySettings(false);
}
InternalReset();
ResetPerformanceCounters();