[Project64] Add end emulation to N64Class

This commit is contained in:
zilmar 2016-08-07 16:51:19 +10:00
parent d3970065fc
commit dff58bbbad
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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(); }