Merge pull request #587 from RachelBryk/recording-race

Don't allow starting recording in states that will cause a crash or othe...
This commit is contained in:
skidau 2014-09-07 13:41:57 +10:00
commit 741c0e2d50
1 changed files with 3 additions and 0 deletions

View File

@ -707,6 +707,9 @@ void CFrame::OnChangeDisc(wxCommandEvent& WXUNUSED (event))
void CFrame::OnRecord(wxCommandEvent& WXUNUSED (event))
{
if ((!Core::IsRunningAndStarted() && Core::IsRunning()) || Movie::IsRecordingInput() || Movie::IsPlayingInput())
return;
int controllers = 0;
if (Movie::IsReadOnly())