From 46068628988c00fd4b4a8d86d7eb4e267673f2d4 Mon Sep 17 00:00:00 2001 From: skidau Date: Thu, 2 Apr 2015 11:01:55 +0000 Subject: [PATCH] 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. --- src/win32/MainWndTools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32/MainWndTools.cpp b/src/win32/MainWndTools.cpp index a38e8e06..62a98a41 100644 --- a/src/win32/MainWndTools.cpp +++ b/src/win32/MainWndTools.cpp @@ -476,7 +476,7 @@ void MainWnd::OnToolsRecordStartmovierecording() void MainWnd::OnUpdateToolsRecordStartmovierecording(CCmdUI* pCmdUI) { - pCmdUI->Enable(!theApp.movieRecording); + pCmdUI->Enable(!theApp.movieRecording && emulating); } void MainWnd::OnToolsRecordStopmovierecording() @@ -567,7 +567,7 @@ void MainWnd::OnToolsPlayStartmovieplaying() void MainWnd::OnUpdateToolsPlayStartmovieplaying(CCmdUI* pCmdUI) { - pCmdUI->Enable(!theApp.moviePlaying); + pCmdUI->Enable(!theApp.moviePlaying && emulating); } void MainWnd::OnToolsPlayStopmovieplaying()