mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 23:40:39 +00:00
Fix drag and drop file start.
Wasn't working when nothing was running yet, had race issues otherwise. The boot message already handles shutdown.
This commit is contained in:
parent
5b888f0d0a
commit
b209d7c416
@ -1556,14 +1556,11 @@ namespace MainWindow
|
||||
TCHAR filename[512];
|
||||
DragQueryFile(hdrop,0,filename,512);
|
||||
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);
|
||||
|
||||
Update();
|
||||
|
||||
NativeMessageReceived("boot", ConvertWStringToUTF8(filename).c_str());
|
||||
Core_EnableStepping(false);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user