From f453dbd7f1ba7f7adcd29d8bc10c3c7545a59965 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 17 Aug 2015 01:39:44 -0700 Subject: [PATCH] 3DS: Make save file read/write --- src/platform/3ds/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/3ds/main.c b/src/platform/3ds/main.c index 65938b20e..06597460c 100644 --- a/src/platform/3ds/main.c +++ b/src/platform/3ds/main.c @@ -44,8 +44,7 @@ int main() { 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);