all repos — mgba @ 495c0ee54e80ad27adf3bc7ad8c723d650156224

mGBA Game Boy Advance Emulator

Wii, 3DS, PSP2: Fix file select reseting to the top directory
Jeffrey Pfau jeffrey@endrift.com
Wed, 26 Aug 2015 19:35:34 -0700
commit

495c0ee54e80ad27adf3bc7ad8c723d650156224

parent

d747badc25010216f366c862e4c931f26ad38dd0

3 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/platform/3ds/main.csrc/platform/3ds/main.c

@@ -106,9 +106,9 @@ 320, 240,

font, _drawStart, _drawEnd, _pollInput }; + char currentPath[256] = ""; while (aptMainLoop()) { char path[256]; - char currentPath[256] = ""; if (!selectFile(&params, "/", path, currentPath, sizeof(path), GBAIsROM)) { break; }
M src/platform/psp2/main.csrc/platform/psp2/main.c

@@ -68,9 +68,9 @@ PSP2_HORIZONTAL_PIXELS, PSP2_VERTICAL_PIXELS,

font, _drawStart, _drawEnd, _pollInput }; + char currentPath[256] = ""; while (true) { char path[256]; - char currentPath[256] = ""; if (!selectFile(&params, "cache0:", path, currentPath, sizeof(path), GBAIsROM)) { break; }
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -165,9 +165,9 @@ blip_set_rates(context.gba->audio.left, GBA_ARM7TDMI_FREQUENCY, 48000);

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);