clear the save state loaded from a previous movie when starting emulation

This commit is contained in:
rog 2012-10-18 04:14:25 -04:00
parent 6b99b746c8
commit 783409c765
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ void Init()
g_bFrameStop = false; g_bFrameStop = false;
g_frameSkipCounter = g_framesToSkip; g_frameSkipCounter = g_framesToSkip;
memset(&g_padState, 0, sizeof(g_padState)); memset(&g_padState, 0, sizeof(g_padState));
if (!tmpHeader.bFromSaveState)
Core::SetStateFileName("");
for (int i = 0; i < 8; ++i) for (int i = 0; i < 8; ++i)
g_InputDisplay[i].clear(); g_InputDisplay[i].clear();