Skip to content

Commit

Permalink
EmulationViewController: Don't allow play / pause to be pressed while…
Browse files Browse the repository at this point in the history
… emulation is starting
  • Loading branch information
OatmealDome committed Feb 1, 2023
1 parent b284b6c commit cf476c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/iOS/App/Common/UI/Emulation/EmulationViewController.mm
Expand Up @@ -181,6 +181,10 @@ - (void)stopPressed {
}

- (void)pausePressed {
if (!Core::IsRunningAndStarted()) {
return;
}

[EmulationCoordinator shared].userRequestedPause = true;

self.navigationItem.rightBarButtonItems = @[
Expand All @@ -190,6 +194,10 @@ - (void)pausePressed {
}

- (void)playPressed {
if (!Core::IsRunningAndStarted()) {
return;
}

[EmulationCoordinator shared].userRequestedPause = false;

self.navigationItem.rightBarButtonItems = @[
Expand Down

0 comments on commit cf476c3

Please sign in to comment.