diff --git a/Source/Project64-core/N64System/N64Class.cpp b/Source/Project64-core/N64System/N64Class.cpp index 7fdcb6b52..e857b2f02 100644 --- a/Source/Project64-core/N64System/N64Class.cpp +++ b/Source/Project64-core/N64System/N64Class.cpp @@ -547,6 +547,11 @@ void CN64System::StartEmulation(bool NewThread) WriteTrace(TraceN64System, TraceDebug, "Done (NewThread: %s)", NewThread ? "true" : "false") } +void CN64System::EndEmulation(void) +{ + m_EndEmulation = true; +} + void CN64System::Pause() { if (m_EndEmulation) diff --git a/Source/Project64-core/N64System/N64Class.h b/Source/Project64-core/N64System/N64Class.h index 8b53347cd..46d8901bd 100644 --- a/Source/Project64-core/N64System/N64Class.h +++ b/Source/Project64-core/N64System/N64Class.h @@ -65,6 +65,7 @@ public: void CloseCpu(); void ExternalEvent(SystemEvent action); //covers gui interacting and timers etc.. void StartEmulation(bool NewThread); + void EndEmulation(); void SyncToAudio(); void IncreaseSpeed() { m_Limiter.IncreaseSpeed(); } void DecreaseSpeed() { m_Limiter.DecreaseSpeed(); }