From dff58bbbad55acf299bec7a56c72d5a9a1d476b5 Mon Sep 17 00:00:00 2001 From: zilmar Date: Sun, 7 Aug 2016 16:51:19 +1000 Subject: [PATCH] [Project64] Add end emulation to N64Class --- Source/Project64-core/N64System/N64Class.cpp | 5 +++++ Source/Project64-core/N64System/N64Class.h | 1 + 2 files changed, 6 insertions(+) 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(); }