Movie: Do not attempt to record input when the emulation has not started yet.

Fixes a null pointer exception when the user starts the recording during a state transition.
This commit is contained in:
Jules Blok 2014-07-08 22:32:35 +02:00
parent db7e746cb4
commit 4df00ae544
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ bool BeginRecordingInput(int controllers)
if (SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_TARUKONGA)
bongos |= (1 << i);
if (Core::IsRunning())
if (Core::IsRunningAndStarted())
{
if (File::Exists(tmpStateFilename))
File::Delete(tmpStateFilename);