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...");
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);
}
//}
}
}

View File

@ -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);