From 495c0ee54e80ad27adf3bc7ad8c723d650156224 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 26 Aug 2015 19:35:34 -0700 Subject: [PATCH] Wii, 3DS, PSP2: Fix file select reseting to the top directory --- src/platform/3ds/main.c | 2 +- src/platform/psp2/main.c | 2 +- src/platform/wii/main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/3ds/main.c b/src/platform/3ds/main.c index 97a901299..90a48c57a 100644 --- a/src/platform/3ds/main.c +++ b/src/platform/3ds/main.c @@ -106,9 +106,9 @@ int main() { font, _drawStart, _drawEnd, _pollInput }; + char currentPath[256] = ""; while (aptMainLoop()) { char path[256]; - char currentPath[256] = ""; if (!selectFile(¶ms, "/", path, currentPath, sizeof(path), GBAIsROM)) { break; } diff --git a/src/platform/psp2/main.c b/src/platform/psp2/main.c index e67343d28..8deb4e47b 100644 --- a/src/platform/psp2/main.c +++ b/src/platform/psp2/main.c @@ -68,9 +68,9 @@ int main() { font, _drawStart, _drawEnd, _pollInput }; + char currentPath[256] = ""; while (true) { char path[256]; - char currentPath[256] = ""; if (!selectFile(¶ms, "cache0:", path, currentPath, sizeof(path), GBAIsROM)) { break; } diff --git a/src/platform/wii/main.c b/src/platform/wii/main.c index b68cc671f..8a73a9ea3 100644 --- a/src/platform/wii/main.c +++ b/src/platform/wii/main.c @@ -165,9 +165,9 @@ int main() { blip_set_rates(context.gba->audio.right, GBA_ARM7TDMI_FREQUENCY, 48000); #endif + char currentPath[256] = ""; while (true) { char path[256]; - char currentPath[256] = ""; guOrtho(proj, -20, 240, 0, 352, 0, 300); GX_LoadProjectionMtx(proj, GX_ORTHOGRAPHIC);