all repos — mgba @ 5a0247ac7871b72f909451479e4dba994f07f08e

mGBA Game Boy Advance Emulator

Place save files in directories when loading in dirmode
Jeffrey Pfau jeffrey@endrift.com
Fri, 18 Jul 2014 00:52:53 -0700
commit

5a0247ac7871b72f909451479e4dba994f07f08e

parent

a14ce5c8151fcbb8d54ce839a7faca54763fe895

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

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -224,6 +224,9 @@ vf->close(vf);

} dirent = threadContext->gamedir->listNext(threadContext->gamedir); } + + // TODO: Differentiate ZIPs and filesystem directories + threadContext->save = threadContext->gamedir->openFile(threadContext->gamedir, "sram.sav", O_RDWR | O_CREAT); } if (!threadContext->rom) {