# HG changeset patch # User Michael Pavone # Date 1604787542 28800 # Node ID 2d8748e0ccb23b071282a032ea454c7431e3f4d4 # Parent 8a64d86cc362eb73993ccc29e6a11d03b177c471 Show current path in file browser diff -r 8a64d86cc362 -r 2d8748e0ccb2 nuklear_ui/blastem_nuklear.c --- a/nuklear_ui/blastem_nuklear.c Wed Nov 04 22:55:26 2020 -0800 +++ b/nuklear_ui/blastem_nuklear.c Sat Nov 07 14:19:02 2020 -0800 @@ -98,7 +98,8 @@ if (nk_begin(context, "Load ROM", nk_rect(0, 0, width, height), 0)) { nk_layout_row_static(context, height - context->style.font->height * 3, width - 60, 1); int32_t old_selected = selected_entry; - if (nk_group_begin(context, "Select ROM", NK_WINDOW_BORDER | NK_WINDOW_TITLE)) { + char *title = alloc_concat("Select ROM: ", current_path); + if (nk_group_begin(context, title, NK_WINDOW_BORDER | NK_WINDOW_TITLE)) { nk_layout_row_static(context, context->style.font->height - 2, width-100, 1); for (int32_t i = 0; i < num_entries; i++) { @@ -118,6 +119,7 @@ } nk_group_end(context); } + free(title); nk_layout_row_static(context, context->style.font->height * 1.75, width > 600 ? 300 : width / 2, 2); if (nk_button_label(context, "Back")) { pop_view();