all repos — mgba @ 2a37d38a92219a582afef70392687618fda4f83b

mGBA Game Boy Advance Emulator

GUI: Fix file select indexing
Jeffrey Pfau jeffrey@endrift.com
Mon, 31 Aug 2015 20:43:31 -0700
commit

2a37d38a92219a582afef70392687618fda4f83b

parent

33e3fb9a454e5377515024af19111e510b5afad8

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/util/gui/file-select.csrc/util/gui/file-select.c

@@ -143,6 +143,7 @@ strncpy(params->currentPath, outPath, PATH_MAX);

} } params->fileIndex = 0; + menu.index = 0; } if (reason == GUI_MENU_EXIT_BACK) { if (strncmp(params->currentPath, params->basePath, PATH_MAX) == 0) {

@@ -153,6 +154,7 @@ if (!_refreshDirectory(params, params->currentPath, &menu.items, filter)) {

break; } params->fileIndex = 0; + menu.index = 0; } }