From f833c79f3e64a5c2b4cb39df9e04a8e4c008f92f Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Wed, 5 Feb 2020 14:39:08 -0700 Subject: [PATCH] Comment out unused code --- arm9/source/dumpOperations.cpp | 10 +++++----- arm9/source/main.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arm9/source/dumpOperations.cpp b/arm9/source/dumpOperations.cpp index ac238c5..092d6f0 100644 --- a/arm9/source/dumpOperations.cpp +++ b/arm9/source/dumpOperations.cpp @@ -93,7 +93,7 @@ void ndsCardDump(void) { printf("Creating directory..."); mkdir(folderPath[1], 0777); } - if (expansionPakFound) { + /*if (expansionPakFound) { consoleClear(); printf("Please switch to the\ngame card, then press A.\n"); //flashcardUnmount(); @@ -115,7 +115,7 @@ void ndsCardDump(void) { consoleSelect(&bottomConsole); printf ("\x1B[47m"); // Print foreground white color - } + }*/ consoleClear(); if (cardInit(&ndsCardHeader) == 0) { printf("Dumping...\n"); @@ -184,7 +184,7 @@ void ndsCardDump(void) { break; } // Dump! - if (expansionPakFound) { + /*if (expansionPakFound) { u32 currentSize = ((expansionPakFound && romSize > 0x800000) ? 0x800000 : romSize); u32 src = 0; u32 writeSrc = 0; @@ -287,7 +287,7 @@ void ndsCardDump(void) { currentSize -= 0x800000; } fclose(destinationFile); - } else { + } else {*/ remove(destPath); FILE* destinationFile = fopen(destPath, "wb"); for (u32 src = 0; src < romSize; src += 0x200) { @@ -308,7 +308,7 @@ void ndsCardDump(void) { } fclose(destinationFile); ndsCardSaveDump(destSavPath); - } + //} } } diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index e9c14f7..deb1267 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -139,7 +139,7 @@ int main(int argc, char **argv) { bool yHeld = false; - sprintf(titleName, "GodMode9i v%i.%i.%i", 2, 1, 0); + sprintf(titleName, "GodMode9i v%i.%i.%i", 2, 1, 1); // initialize video mode videoSetMode(MODE_4_2D);