Fix drag and drop loading on Windows.

This commit is contained in:
Unknown W. Brackets 2013-04-06 20:09:29 -07:00
parent 481c450718
commit c12b306abd

View File

@ -608,11 +608,13 @@ namespace MainWindow
TCHAR *type = filename+_tcslen(filename)-3;
SendMessage(hWnd, WM_COMMAND, ID_EMULATION_STOP, 0);
// Ugly, need to wait for the stop message to process in the EmuThread.
Sleep(20);
MainWindow::SetPlaying(filename);
MainWindow::Update();
NativeMessageReceived("run", filename);
NativeMessageReceived("boot", filename);
}
}
break;