mirror of https://github.com/mgba-emu/mgba.git
GUI: Fix file select indexing
This commit is contained in:
parent
33e3fb9a45
commit
2a37d38a92
|
@ -143,6 +143,7 @@ bool GUISelectFile(struct GUIParams* params, char* outPath, size_t outLen, bool
|
|||
}
|
||||
}
|
||||
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 @@ bool GUISelectFile(struct GUIParams* params, char* outPath, size_t outLen, bool
|
|||
break;
|
||||
}
|
||||
params->fileIndex = 0;
|
||||
menu.index = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue