diff --git a/src/core/system.cpp b/src/core/system.cpp index 32c2f2d09..3ee1e266e 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -345,6 +345,12 @@ void System::CancelPendingStartup() s_startup_cancelled.store(true); } +void System::InterruptExecution() +{ + if (s_system_executing) + s_system_interrupted = true; +} + ConsoleRegion System::GetRegion() { return s_region; diff --git a/src/core/system.h b/src/core/system.h index 06185ce33..24c789a03 100644 --- a/src/core/system.h +++ b/src/core/system.h @@ -146,6 +146,7 @@ bool IsExecuting(); bool IsStartupCancelled(); void CancelPendingStartup(); +void InterruptExecution(); ConsoleRegion GetRegion(); DiscRegion GetDiscRegion();