mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-26 12:12:02 +00:00
Update gc_dumper.c
This commit is contained in:
parent
fea5f8803d
commit
3999e48c43
1 changed files with 2 additions and 13 deletions
|
@ -78,6 +78,7 @@ static bool waitForGameCard(void);
|
||||||
static void waitForUsb(void);
|
static void waitForUsb(void);
|
||||||
|
|
||||||
static void generateDumpTxt(void);
|
static void generateDumpTxt(void);
|
||||||
|
static bool saveDumpTxt(void);
|
||||||
|
|
||||||
static bool saveGameCardSpecificData(void);
|
static bool saveGameCardSpecificData(void);
|
||||||
static bool saveGameCardCertificate(void);
|
static bool saveGameCardCertificate(void);
|
||||||
|
@ -324,7 +325,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
/* Run task. */
|
/* Run task. */
|
||||||
utilsSetLongRunningProcessState(true);
|
utilsSetLongRunningProcessState(true);
|
||||||
selected_element->task_func();
|
if (selected_element->task_func()) saveDumpTxt();
|
||||||
utilsSetLongRunningProcessState(false);
|
utilsSetLongRunningProcessState(false);
|
||||||
|
|
||||||
/* Display prompt. */
|
/* Display prompt. */
|
||||||
|
@ -577,8 +578,6 @@ static bool saveGameCardSpecificData(void)
|
||||||
printf("successfully saved specific data as \"%s\"\n", path);
|
printf("successfully saved specific data as \"%s\"\n", path);
|
||||||
success = true;
|
success = true;
|
||||||
|
|
||||||
saveDumpTxt();
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (filename) free(filename);
|
if (filename) free(filename);
|
||||||
|
|
||||||
|
@ -608,8 +607,6 @@ static bool saveGameCardCertificate(void)
|
||||||
printf("successfully saved certificate as \"%s\"\n", path);
|
printf("successfully saved certificate as \"%s\"\n", path);
|
||||||
success = true;
|
success = true;
|
||||||
|
|
||||||
saveDumpTxt();
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (filename) free(filename);
|
if (filename) free(filename);
|
||||||
|
|
||||||
|
@ -633,8 +630,6 @@ static bool saveGameCardInitialData(void)
|
||||||
printf("successfully saved initial data as \"%s\"\n", path);
|
printf("successfully saved initial data as \"%s\"\n", path);
|
||||||
success = true;
|
success = true;
|
||||||
|
|
||||||
saveDumpTxt();
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (filename) free(filename);
|
if (filename) free(filename);
|
||||||
|
|
||||||
|
@ -658,8 +653,6 @@ static bool saveGameCardIdSet(void)
|
||||||
printf("successfully saved gamecard id set as \"%s\"\n", path);
|
printf("successfully saved gamecard id set as \"%s\"\n", path);
|
||||||
success = true;
|
success = true;
|
||||||
|
|
||||||
saveDumpTxt();
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (filename) free(filename);
|
if (filename) free(filename);
|
||||||
|
|
||||||
|
@ -810,8 +803,6 @@ static bool saveGameCardImage(void)
|
||||||
|
|
||||||
if (g_calcCrc) printf("xci crc: %08X\n", shared_data.xci_crc);
|
if (g_calcCrc) printf("xci crc: %08X\n", shared_data.xci_crc);
|
||||||
|
|
||||||
saveDumpTxt();
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (shared_data.fp)
|
if (shared_data.fp)
|
||||||
{
|
{
|
||||||
|
@ -857,8 +848,6 @@ static bool saveConsoleLafwBlob(void)
|
||||||
printf("successfully saved lafw blob as \"%s\"\n", path);
|
printf("successfully saved lafw blob as \"%s\"\n", path);
|
||||||
success = true;
|
success = true;
|
||||||
|
|
||||||
saveDumpTxt();
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue