From eb7446d24a314e93a07a9506820b28d7f530689f Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 7 Sep 2020 02:52:07 -0600 Subject: [PATCH] Derp fix --- arm9/source/dumpOperations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/dumpOperations.cpp b/arm9/source/dumpOperations.cpp index cee9a45..9c9cb54 100644 --- a/arm9/source/dumpOperations.cpp +++ b/arm9/source/dumpOperations.cpp @@ -577,7 +577,6 @@ void gbaCartDump(void) { writeChange(rstCmd); FILE* destinationFile = fopen(destPath, "wb"); fwrite(GBAROM, 1, romSize, destinationFile); - fclose(destinationFile); // Check for 64MB GBA Video ROM if (strncmp((char*)0x080000AC, "MSAE", 4)==0 // Shark Tale || strncmp((char*)0x080000AC, "MSKE", 4)==0 // Shrek @@ -600,6 +599,7 @@ void gbaCartDump(void) { fwrite(GBAROM + (0x1000 >> 1), 0x1000, 1, destinationFile); } } + fclose(destinationFile); // Save file remove(destSavPath); destinationFile = fopen(destSavPath, "wb");