Skip to content

Commit

Permalink
System: Add InterruptExecution()
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 30, 2023
1 parent 2915d4c commit 5421900
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/system.cpp
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/core/system.h
Expand Up @@ -146,6 +146,7 @@ bool IsExecuting();

bool IsStartupCancelled();
void CancelPendingStartup();
void InterruptExecution();

ConsoleRegion GetRegion();
DiscRegion GetDiscRegion();
Expand Down

0 comments on commit 5421900

Please sign in to comment.