mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Buildfixes
This commit is contained in:
parent
35cd44cbc4
commit
b5fa321532
@ -43,8 +43,6 @@ extern bool g_restore_desktop;
|
|||||||
LRESULT win32_handle_keyboard_event(HWND hwnd, UINT message,
|
LRESULT win32_handle_keyboard_event(HWND hwnd, UINT message,
|
||||||
WPARAM wparam, LPARAM lparam);
|
WPARAM wparam, LPARAM lparam);
|
||||||
|
|
||||||
LRESULT win32_menu_loop(HWND handle, WPARAM wparam);
|
|
||||||
|
|
||||||
void win32_monitor_get_info(void);
|
void win32_monitor_get_info(void);
|
||||||
|
|
||||||
void win32_monitor_info(void *data, void *hm_data, unsigned *mon_id);
|
void win32_monitor_info(void *data, void *hm_data, unsigned *mon_id);
|
||||||
|
@ -412,6 +412,33 @@ bool win32_shader_dlg_init(void)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool win32_browser(
|
||||||
|
HWND owner,
|
||||||
|
char *filename,
|
||||||
|
const char *extensions,
|
||||||
|
const char *title,
|
||||||
|
const char *initial_dir)
|
||||||
|
{
|
||||||
|
OPENFILENAME ofn;
|
||||||
|
|
||||||
|
memset((void*)&ofn, 0, sizeof(OPENFILENAME));
|
||||||
|
|
||||||
|
ofn.lStructSize = sizeof(OPENFILENAME);
|
||||||
|
ofn.hwndOwner = owner;
|
||||||
|
ofn.lpstrFilter = extensions;
|
||||||
|
ofn.lpstrFile = filename;
|
||||||
|
ofn.lpstrTitle = title;
|
||||||
|
ofn.lpstrInitialDir = TEXT(initial_dir);
|
||||||
|
ofn.lpstrDefExt = "";
|
||||||
|
ofn.nMaxFile = PATH_MAX;
|
||||||
|
ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
|
||||||
|
|
||||||
|
if (!GetOpenFileName(&ofn))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
LRESULT win32_menu_loop(HWND owner, WPARAM wparam)
|
LRESULT win32_menu_loop(HWND owner, WPARAM wparam)
|
||||||
{
|
{
|
||||||
WPARAM mode = wparam & 0xffff;
|
WPARAM mode = wparam & 0xffff;
|
||||||
@ -533,33 +560,6 @@ LRESULT win32_menu_loop(HWND owner, WPARAM wparam)
|
|||||||
return 0L;
|
return 0L;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool win32_browser(
|
|
||||||
HWND owner,
|
|
||||||
char *filename,
|
|
||||||
const char *extensions,
|
|
||||||
const char *title,
|
|
||||||
const char *initial_dir)
|
|
||||||
{
|
|
||||||
OPENFILENAME ofn;
|
|
||||||
|
|
||||||
memset((void*)&ofn, 0, sizeof(OPENFILENAME));
|
|
||||||
|
|
||||||
ofn.lStructSize = sizeof(OPENFILENAME);
|
|
||||||
ofn.hwndOwner = owner;
|
|
||||||
ofn.lpstrFilter = extensions;
|
|
||||||
ofn.lpstrFile = filename;
|
|
||||||
ofn.lpstrTitle = title;
|
|
||||||
ofn.lpstrInitialDir = TEXT(initial_dir);
|
|
||||||
ofn.lpstrDefExt = "";
|
|
||||||
ofn.nMaxFile = PATH_MAX;
|
|
||||||
ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
|
|
||||||
|
|
||||||
if (!GetOpenFileName(&ofn))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void ui_companion_win32_deinit(void *data)
|
static void ui_companion_win32_deinit(void *data)
|
||||||
{
|
{
|
||||||
ui_companion_win32_t *handle = (ui_companion_win32_t*)data;
|
ui_companion_win32_t *handle = (ui_companion_win32_t*)data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user