mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
Merge pull request #21 from MelonSpeedruns/melon-randomizer
fixed direct3d drag & drop
This commit is contained in:
commit
09c9c7c81d
1 changed files with 1 additions and 2 deletions
|
@ -227,7 +227,7 @@ static void onkeyup(WPARAM w_param, LPARAM l_param) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void LoadItemLocations(const char* spoilerFileName);
|
char fileName[256];
|
||||||
|
|
||||||
static LRESULT CALLBACK gfx_dxgi_wnd_proc(HWND h_wnd, UINT message, WPARAM w_param, LPARAM l_param) {
|
static LRESULT CALLBACK gfx_dxgi_wnd_proc(HWND h_wnd, UINT message, WPARAM w_param, LPARAM l_param) {
|
||||||
SohImGui::EventImpl event_impl;
|
SohImGui::EventImpl event_impl;
|
||||||
|
@ -270,7 +270,6 @@ static LRESULT CALLBACK gfx_dxgi_wnd_proc(HWND h_wnd, UINT message, WPARAM w_par
|
||||||
onkeyup(w_param, l_param);
|
onkeyup(w_param, l_param);
|
||||||
break;
|
break;
|
||||||
case WM_DROPFILES:
|
case WM_DROPFILES:
|
||||||
char fileName[256];
|
|
||||||
DragQueryFileA((HDROP)w_param, 0, fileName, 256);
|
DragQueryFileA((HDROP)w_param, 0, fileName, 256);
|
||||||
CVar_SetString("gDroppedFile", fileName);
|
CVar_SetString("gDroppedFile", fileName);
|
||||||
CVar_SetS32("gDroppedNewSpoilerFile", 1);
|
CVar_SetS32("gDroppedNewSpoilerFile", 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue