diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2014-09-06 23:44:25 -0400 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2014-09-06 23:44:25 -0400 |
| commit | 5a163ec5e6f6fba5f4901f02071042211d6a25eb (patch) | |
| tree | 44b89389ced340bbd040937884bd1c46de01e48d /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | 46c18aa909a51bed885babf65e4ec15eae2865fd (diff) | |
Add an IsMovieActive function.
Makes things a bit simpler, since this is a common check.
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 7341e62336..0bc0b80165 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -1084,7 +1084,7 @@ void CFrame::DoStop() // TODO: Show the author/description dialog here if (Movie::IsRecordingInput()) DoRecordingSave(); - if (Movie::IsPlayingInput() || Movie::IsRecordingInput()) + if (Movie::IsMovieActive()) Movie::EndPlayInput(false); NetPlay::StopGame(); @@ -1631,7 +1631,7 @@ void CFrame::UpdateGUI() GetMenuBar()->FindItem(IDM_RESET)->Enable(Running || Paused); GetMenuBar()->FindItem(IDM_RECORD)->Enable(!Movie::IsRecordingInput()); GetMenuBar()->FindItem(IDM_PLAYRECORD)->Enable(!Initialized); - GetMenuBar()->FindItem(IDM_RECORDEXPORT)->Enable(Movie::IsPlayingInput() || Movie::IsRecordingInput()); + GetMenuBar()->FindItem(IDM_RECORDEXPORT)->Enable(Movie::IsMovieActive()); GetMenuBar()->FindItem(IDM_FRAMESTEP)->Enable(Running || Paused); GetMenuBar()->FindItem(IDM_SCREENSHOT)->Enable(Running || Paused); GetMenuBar()->FindItem(IDM_TOGGLE_FULLSCREEN)->Enable(Running || Paused); |
