System: Clear cheat list on reset
This commit is contained in:
@@ -74,7 +74,7 @@ void Logout();
|
|||||||
/// Called when the system changes game, or is booting.
|
/// Called when the system changes game, or is booting.
|
||||||
void GameChanged(const std::string& path, CDImage* image);
|
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();
|
bool ResetHardcoreMode();
|
||||||
|
|
||||||
/// Forces hardcore mode off until next reset.
|
/// Forces hardcore mode off until next reset.
|
||||||
|
|||||||
@@ -1084,7 +1084,12 @@ void System::ResetSystem()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (Achievements::ResetHardcoreMode())
|
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);
|
ApplySettings(false);
|
||||||
|
}
|
||||||
|
|
||||||
InternalReset();
|
InternalReset();
|
||||||
ResetPerformanceCounters();
|
ResetPerformanceCounters();
|
||||||
|
|||||||
Reference in New Issue
Block a user