Wii, 3DS, PSP2: Fix file select reseting to the top directory

This commit is contained in:
Jeffrey Pfau 2015-08-26 19:35:34 -07:00
parent d747badc25
commit 495c0ee54e
3 changed files with 3 additions and 3 deletions

View File

@ -106,9 +106,9 @@ int main() {
font, _drawStart, _drawEnd, _pollInput font, _drawStart, _drawEnd, _pollInput
}; };
char currentPath[256] = "";
while (aptMainLoop()) { while (aptMainLoop()) {
char path[256]; char path[256];
char currentPath[256] = "";
if (!selectFile(&params, "/", path, currentPath, sizeof(path), GBAIsROM)) { if (!selectFile(&params, "/", path, currentPath, sizeof(path), GBAIsROM)) {
break; break;
} }

View File

@ -68,9 +68,9 @@ int main() {
font, _drawStart, _drawEnd, _pollInput font, _drawStart, _drawEnd, _pollInput
}; };
char currentPath[256] = "";
while (true) { while (true) {
char path[256]; char path[256];
char currentPath[256] = "";
if (!selectFile(&params, "cache0:", path, currentPath, sizeof(path), GBAIsROM)) { if (!selectFile(&params, "cache0:", path, currentPath, sizeof(path), GBAIsROM)) {
break; break;
} }

View File

@ -165,9 +165,9 @@ int main() {
blip_set_rates(context.gba->audio.right, GBA_ARM7TDMI_FREQUENCY, 48000); blip_set_rates(context.gba->audio.right, GBA_ARM7TDMI_FREQUENCY, 48000);
#endif #endif
char currentPath[256] = "";
while (true) { while (true) {
char path[256]; char path[256];
char currentPath[256] = "";
guOrtho(proj, -20, 240, 0, 352, 0, 300); guOrtho(proj, -20, 240, 0, 352, 0, 300);
GX_LoadProjectionMtx(proj, GX_ORTHOGRAPHIC); GX_LoadProjectionMtx(proj, GX_ORTHOGRAPHIC);