{Projct64] Put end emulation menu option in critical section
This commit is contained in:
parent
5c84e78ee1
commit
fe8b20e9d1
|
@ -179,9 +179,12 @@ bool CMainMenu::ProcessMessage(HWND hWnd, DWORD /*FromAccelerator*/, DWORD MenuI
|
||||||
g_BaseSystem->StartEmulation(true);
|
g_BaseSystem->StartEmulation(true);
|
||||||
break;
|
break;
|
||||||
case ID_FILE_ENDEMULATION:
|
case ID_FILE_ENDEMULATION:
|
||||||
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ENDEMULATION");
|
{
|
||||||
CN64System::CloseSystem();
|
CGuard Guard(m_CS);
|
||||||
m_Gui->SaveWindowLoc();
|
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ENDEMULATION");
|
||||||
|
CN64System::CloseSystem();
|
||||||
|
m_Gui->SaveWindowLoc();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ID_FILE_ROMDIRECTORY:
|
case ID_FILE_ROMDIRECTORY:
|
||||||
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ROMDIRECTORY 1");
|
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ROMDIRECTORY 1");
|
||||||
|
|
Loading…
Reference in New Issue