mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 16:05:42 -04: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.
|
/// 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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user