[Project64] Cleanup main.cpp
This commit is contained in:
parent
003bcc9096
commit
eab2acdecf
|
@ -154,7 +154,8 @@ bool TerminatedExistingEmu()
|
||||||
if (TerminateProcess(hHandle, 0))
|
if (TerminateProcess(hHandle, 0))
|
||||||
{
|
{
|
||||||
bTerminated = true;
|
bTerminated = true;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
MessageBox(NULL, stdstr_f("Failed to terminate pid %d", lppe.th32ProcessID).c_str(), "Terminate project64 failed!", MB_YESNO | MB_ICONEXCLAMATION);
|
MessageBox(NULL, stdstr_f("Failed to terminate pid %d", lppe.th32ProcessID).c_str(), "Terminate project64 failed!", MB_YESNO | MB_ICONEXCLAMATION);
|
||||||
}
|
}
|
||||||
CloseHandle(hHandle);
|
CloseHandle(hHandle);
|
||||||
|
@ -234,7 +235,6 @@ int WINAPI WinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPSTR /
|
||||||
CLanguageSelector().Select();
|
CLanguageSelector().Select();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Create the main window with Menu
|
//Create the main window with Menu
|
||||||
WriteTrace(TraceDebug, __FUNCTION__ ": Create Main Window");
|
WriteTrace(TraceDebug, __FUNCTION__ ": Create Main Window");
|
||||||
stdstr WinTitle(AppName());
|
stdstr WinTitle(AppName());
|
||||||
|
@ -261,7 +261,8 @@ int WINAPI WinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPSTR /
|
||||||
MainWindow.ShowRomList();
|
MainWindow.ShowRomList();
|
||||||
MainWindow.Show(true); //Show the main window
|
MainWindow.Show(true); //Show the main window
|
||||||
MainWindow.HighLightLastRom();
|
MainWindow.HighLightLastRom();
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
WriteTrace(TraceDebug, __FUNCTION__ ": Show Main Window");
|
WriteTrace(TraceDebug, __FUNCTION__ ": Show Main Window");
|
||||||
MainWindow.Show(true); //Show the main window
|
MainWindow.Show(true); //Show the main window
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue