mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-23 17:19:39 +00:00
Debugger: Prevent autosave from resuming execution
This commit is contained in:
parent
50103ff94a
commit
5db212c98c
@ -14,7 +14,9 @@ AutoSaveManager::AutoSaveManager()
|
||||
uint32_t autoSaveDelay = EmulationSettings::GetAutoSaveDelay(showMessage) * 60 * 1000;
|
||||
if(autoSaveDelay > 0) {
|
||||
if(_timer.GetElapsedMS() > autoSaveDelay) {
|
||||
SaveStateManager::SaveState(_autoSaveSlot, showMessage);
|
||||
if(!Console::IsDebuggerAttached()) {
|
||||
SaveStateManager::SaveState(_autoSaveSlot, showMessage);
|
||||
}
|
||||
_timer.Reset();
|
||||
}
|
||||
} else {
|
||||
|
@ -500,4 +500,9 @@ uint32_t Console::GetLagCounter()
|
||||
void Console::ResetLagCounter()
|
||||
{
|
||||
Instance->_lagCounter = 0;
|
||||
}
|
||||
|
||||
bool Console::IsDebuggerAttached()
|
||||
{
|
||||
return (bool)Instance->_debugger;
|
||||
}
|
@ -83,6 +83,8 @@ class Console
|
||||
|
||||
static bool IsRunning();
|
||||
|
||||
static bool IsDebuggerAttached();
|
||||
|
||||
static shared_ptr<Console> GetInstance();
|
||||
static void Release();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user