Mercurial > repos > blastem
comparison nuklear_ui/blastem_nuklear.c @ 1484:d82af64c94d2 nuklear_ui
Sort directory listing in Nuklear UI file browser
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Nov 2017 17:33:39 -0800 |
parents | 001120e91fed |
children | 369da70ee2c2 |
comparison
equal
deleted
inserted
replaced
1483:001120e91fed | 1484:d82af64c94d2 |
---|---|
31 if (!current_path) { | 31 if (!current_path) { |
32 get_initial_browse_path(¤t_path); | 32 get_initial_browse_path(¤t_path); |
33 } | 33 } |
34 if (!entries) { | 34 if (!entries) { |
35 entries = get_dir_list(current_path, &num_entries); | 35 entries = get_dir_list(current_path, &num_entries); |
36 if (entries) { | |
37 sort_dir_list(entries, num_entries); | |
38 } | |
36 } | 39 } |
37 uint32_t width = render_width(); | 40 uint32_t width = render_width(); |
38 uint32_t height = render_height(); | 41 uint32_t height = render_height(); |
39 if (nk_begin(context, "Load ROM", nk_rect(0, 0, width, height), 0)) { | 42 if (nk_begin(context, "Load ROM", nk_rect(0, 0, width, height), 0)) { |
40 nk_layout_row_static(context, height - 100, width - 60, 1); | 43 nk_layout_row_static(context, height - 100, width - 60, 1); |