Disabled the Start Recording and Play Recording menu items if a game is not running. Those options would error when they tried to save state.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1285 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
skidau 2015-04-02 11:01:55 +00:00
parent 396f0bd84d
commit 898e8a9d99
1 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@ void MainWnd::OnToolsRecordStartmovierecording()
void MainWnd::OnUpdateToolsRecordStartmovierecording(CCmdUI* pCmdUI) void MainWnd::OnUpdateToolsRecordStartmovierecording(CCmdUI* pCmdUI)
{ {
pCmdUI->Enable(!theApp.movieRecording); pCmdUI->Enable(!theApp.movieRecording && emulating);
} }
void MainWnd::OnToolsRecordStopmovierecording() void MainWnd::OnToolsRecordStopmovierecording()
@ -567,7 +567,7 @@ void MainWnd::OnToolsPlayStartmovieplaying()
void MainWnd::OnUpdateToolsPlayStartmovieplaying(CCmdUI* pCmdUI) void MainWnd::OnUpdateToolsPlayStartmovieplaying(CCmdUI* pCmdUI)
{ {
pCmdUI->Enable(!theApp.moviePlaying); pCmdUI->Enable(!theApp.moviePlaying && emulating);
} }
void MainWnd::OnToolsPlayStopmovieplaying() void MainWnd::OnToolsPlayStopmovieplaying()