mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-01 10:13:38 +00:00
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:
parent
db7e746cb4
commit
4df00ae544
@ -444,7 +444,7 @@ bool BeginRecordingInput(int controllers)
|
|||||||
if (SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_TARUKONGA)
|
if (SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_TARUKONGA)
|
||||||
bongos |= (1 << i);
|
bongos |= (1 << i);
|
||||||
|
|
||||||
if (Core::IsRunning())
|
if (Core::IsRunningAndStarted())
|
||||||
{
|
{
|
||||||
if (File::Exists(tmpStateFilename))
|
if (File::Exists(tmpStateFilename))
|
||||||
File::Delete(tmpStateFilename);
|
File::Delete(tmpStateFilename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user