3DS: Make save file read/write

This commit is contained in:
Jeffrey Pfau 2015-08-17 01:39:44 -07:00
parent 7a3c7c1488
commit f453dbd7f1
1 changed files with 1 additions and 2 deletions

View File

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