mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-29 17:15:40 +00:00
System: Clear cheat list on reset
This commit is contained in:
parent
eafa5d41bb
commit
8e7b212b03
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue