Actually respect autorun on Windows.

Fixes #1179.
This commit is contained in:
Unknown W. Brackets committed 2013-04-05 00:57:43 -07:00
1 parent 169d04d3ad
commit fd0a422d89
4 files changed
+4 -24

No files matched your search

-14
View File
@@ -49,7 +49,6 @@ namespace MainWindow
HWND hwndDisplay;
HWND hwndGameList;
static HMENU menu;
static CoreState nextState = CORE_POWERDOWN;
static HINSTANCE hInst;
@@ -657,14 +656,6 @@ namespace MainWindow
if (memoryWindow[0])
memoryWindow[0]->NotifyMapLoaded();
if (nextState == CORE_RUNNING)
PostMessage(hwndMain, WM_COMMAND, ID_EMULATION_RUN, 0);
else if (globalUIState == UISTATE_INGAME)
{
if (disasmWindow[0])
SendMessage(disasmWindow[0]->GetDlgHandle(), WM_COMMAND, IDC_GO, 0);
}
SetForegroundWindow(hwndMain);
break;
@@ -892,11 +883,6 @@ namespace MainWindow
SetCursor(LoadCursor(0, IDC_ARROW));
}
void SetNextState(CoreState state)
{
nextState = state;
}
HINSTANCE GetHInstance()
{
return hInst;