all repos — mgba @ f453dbd7f1ba7f7adcd29d8bc10c3c7545a59965

mGBA Game Boy Advance Emulator

3DS: Make save file read/write
Jeffrey Pfau jeffrey@endrift.com
Mon, 17 Aug 2015 01:39:44 -0700
commit

f453dbd7f1ba7f7adcd29d8bc10c3c7545a59965

parent

7a3c7c14888216135c8973d73d3eda537b1a25ab

1 files changed, 1 insertions(+), 2 deletions(-)

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

@@ -44,8 +44,7 @@ renderer.outputBuffer = videoBuffer;

renderer.outputBufferStride = VIDEO_HORIZONTAL_PIXELS; struct VFile* rom = VFileOpen3DS(&sdmcArchive, "/rom.gba", FS_OPEN_READ); - - struct VFile* save = VFileOpen3DS(&sdmcArchive, "/rom.sav", FS_OPEN_WRITE | FS_OPEN_CREATE); + struct VFile* save = VFileOpen3DS(&sdmcArchive, "/rom.sav", FS_OPEN_READ | FS_OPEN_WRITE); GBACreate(gba); ARMSetComponents(cpu, &gba->d, 0, 0);