Mercurial > repos > blastem
changeset 2016:2d8748e0ccb2
Show current path in file browser
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 07 Nov 2020 14:19:02 -0800 |
parents | 8a64d86cc362 |
children | 8e7b06ade815 |
files | nuklear_ui/blastem_nuklear.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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();