Comment out unused code

This commit is contained in:
RocketRobz 2020-02-05 14:39:08 -07:00
parent ef4b474fd6
commit f833c79f3e
2 changed files with 6 additions and 6 deletions

View File

@ -93,7 +93,7 @@ void ndsCardDump(void) {
printf("Creating directory..."); printf("Creating directory...");
mkdir(folderPath[1], 0777); mkdir(folderPath[1], 0777);
} }
if (expansionPakFound) { /*if (expansionPakFound) {
consoleClear(); consoleClear();
printf("Please switch to the\ngame card, then press A.\n"); printf("Please switch to the\ngame card, then press A.\n");
//flashcardUnmount(); //flashcardUnmount();
@ -115,7 +115,7 @@ void ndsCardDump(void) {
consoleSelect(&bottomConsole); consoleSelect(&bottomConsole);
printf ("\x1B[47m"); // Print foreground white color printf ("\x1B[47m"); // Print foreground white color
} }*/
consoleClear(); consoleClear();
if (cardInit(&ndsCardHeader) == 0) { if (cardInit(&ndsCardHeader) == 0) {
printf("Dumping...\n"); printf("Dumping...\n");
@ -184,7 +184,7 @@ void ndsCardDump(void) {
break; break;
} }
// Dump! // Dump!
if (expansionPakFound) { /*if (expansionPakFound) {
u32 currentSize = ((expansionPakFound && romSize > 0x800000) ? 0x800000 : romSize); u32 currentSize = ((expansionPakFound && romSize > 0x800000) ? 0x800000 : romSize);
u32 src = 0; u32 src = 0;
u32 writeSrc = 0; u32 writeSrc = 0;
@ -287,7 +287,7 @@ void ndsCardDump(void) {
currentSize -= 0x800000; currentSize -= 0x800000;
} }
fclose(destinationFile); fclose(destinationFile);
} else { } else {*/
remove(destPath); remove(destPath);
FILE* destinationFile = fopen(destPath, "wb"); FILE* destinationFile = fopen(destPath, "wb");
for (u32 src = 0; src < romSize; src += 0x200) { for (u32 src = 0; src < romSize; src += 0x200) {
@ -308,7 +308,7 @@ void ndsCardDump(void) {
} }
fclose(destinationFile); fclose(destinationFile);
ndsCardSaveDump(destSavPath); ndsCardSaveDump(destSavPath);
} //}
} }
} }

View File

@ -139,7 +139,7 @@ int main(int argc, char **argv) {
bool yHeld = false; 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 // initialize video mode
videoSetMode(MODE_4_2D); videoSetMode(MODE_4_2D);