mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-08 23:08:08 +00:00
correctly use command titles in native file explorer
This commit is contained in:
@@ -757,7 +757,7 @@ wm_graphical_message(B32 error, String8 title, String8 message)
|
||||
}
|
||||
|
||||
internal String8
|
||||
wm_graphical_pick_file(Arena *arena, String8 initial_path)
|
||||
wm_graphical_pick_file(Arena *arena, String8 title, String8 initial_path)
|
||||
{
|
||||
return str8_zero();
|
||||
}
|
||||
|
||||
@@ -13106,7 +13106,12 @@ rd_frame(void)
|
||||
{
|
||||
current_path_string = path_normalized_from_string(scratch.arena, get_current_path(scratch.arena));
|
||||
}
|
||||
String8 file_path = wm_graphical_pick_file(scratch.arena, current_path_string);
|
||||
String8 cmd_title = rd_display_from_code_name(info->string);
|
||||
if(cmd_title.size == 0)
|
||||
{
|
||||
cmd_title = info->string;
|
||||
}
|
||||
String8 file_path = wm_graphical_pick_file(scratch.arena, cmd_title, current_path_string);
|
||||
file_path = path_normalized_from_string(scratch.arena, file_path);
|
||||
if(file_path.size != 0)
|
||||
{
|
||||
|
||||
@@ -1629,7 +1629,7 @@ wm_graphical_message(B32 error, String8 title, String8 message)
|
||||
}
|
||||
|
||||
internal String8
|
||||
wm_graphical_pick_file(Arena *arena, String8 initial_path)
|
||||
wm_graphical_pick_file(Arena *arena, String8 title, String8 initial_path)
|
||||
{
|
||||
String8 result = {0};
|
||||
{
|
||||
@@ -1638,6 +1638,7 @@ wm_graphical_pick_file(Arena *arena, String8 initial_path)
|
||||
U16 *buffer = push_array(scratch.arena, U16, buffer_size);
|
||||
OPENFILENAMEW params = {sizeof(params)};
|
||||
{
|
||||
params.lpstrTitle = (WCHAR *)str16_from_8(scratch.arena, title).str;
|
||||
params.lpstrFile = (WCHAR *)buffer;
|
||||
params.nMaxFile = buffer_size;
|
||||
params.lpstrInitialDir = (WCHAR *)str16_from_8(scratch.arena, initial_path).str;
|
||||
|
||||
@@ -235,7 +235,7 @@ internal void wm_set_cursor(WM_Cursor cursor);
|
||||
//~ rjf: @per_os_impl Native User-Facing Graphical Messages (Implemented Per-OS)
|
||||
|
||||
internal void wm_graphical_message(B32 error, String8 title, String8 message);
|
||||
internal String8 wm_graphical_pick_file(Arena *arena, String8 initial_path);
|
||||
internal String8 wm_graphical_pick_file(Arena *arena, String8 title, String8 initial_path);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: @per_os_impl Shell Operations
|
||||
|
||||
@@ -259,7 +259,7 @@ wm_graphical_message(B32 error, String8 title, String8 message)
|
||||
}
|
||||
|
||||
internal String8
|
||||
wm_graphical_pick_file(Arena *arena, String8 initial_path)
|
||||
wm_graphical_pick_file(Arena *arena, String8 title, String8 initial_path)
|
||||
{
|
||||
return str8_zero();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user