stop emu on dead child
This commit is contained in:
parent
7538c4268a
commit
2ebe736ab9
|
@ -1902,6 +1902,13 @@ void WndMain::StartEmulation(EnumAutoConvert x_AutoConvert, HWND hwndParent)
|
||||||
// stop emulation
|
// stop emulation
|
||||||
void WndMain::StopEmulation()
|
void WndMain::StopEmulation()
|
||||||
{
|
{
|
||||||
|
if(!IsWindow(m_hwndChild))
|
||||||
|
{
|
||||||
|
m_hwndChild = NULL;
|
||||||
|
SetWindowText(m_hwnd, "Cxbx " _CXBX_VERSION);
|
||||||
|
RefreshMenus();
|
||||||
|
}
|
||||||
|
|
||||||
SendMessage(m_hwndChild, WM_CLOSE, 0, 0);
|
SendMessage(m_hwndChild, WM_CLOSE, 0, 0);
|
||||||
m_bCanStart = true;
|
m_bCanStart = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue