1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-26 20:22:17 +00:00

Fix PoCs.

This commit is contained in:
Pablo Curiel 2021-07-23 08:42:20 -04:00
parent 6bb693b493
commit ff0a2a385c
3 changed files with 5 additions and 5 deletions

View file

@ -187,7 +187,7 @@ static void nspDump(TitleInfo *title_info, u64 free_space)
} }
/* Generate output path. */ /* Generate output path. */
if (!(dump_name = titleGenerateFileName(title_info, TitleFileNameConvention_Full, ums_device ? TitleFileNameIllegalCharReplaceType_IllegalFsChars : TitleFileNameIllegalCharReplaceType_KeepAsciiCharsOnly))) if (!(dump_name = titleGenerateFileName(title_info, TitleNamingConvention_Full, ums_device ? TitleFileNameIllegalCharReplaceType_IllegalFsChars : TitleFileNameIllegalCharReplaceType_KeepAsciiCharsOnly)))
{ {
consolePrint("title generate file name failed\n"); consolePrint("title generate file name failed\n");
goto end; goto end;

View file

@ -178,7 +178,7 @@ static void dump_thread_func(void *arg)
} }
/* Generate output path. */ /* Generate output path. */
if (!(dump_name = titleGenerateFileName(title_info, TitleFileNameConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars))) if (!(dump_name = titleGenerateFileName(title_info, TitleNamingConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars)))
{ {
consolePrint("title generate file name failed\n"); consolePrint("title generate file name failed\n");
goto end; goto end;

View file

@ -461,7 +461,7 @@ static bool sendGameCardKeyAreaViaUsb(void)
GameCardKeyArea gc_key_area = {0}; GameCardKeyArea gc_key_area = {0};
bool success = false; bool success = false;
u32 crc = 0; u32 crc = 0;
char *filename = titleGenerateGameCardFileName(TitleFileNameConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars); char *filename = titleGenerateGameCardFileName(TitleNamingConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars);
if (!dumpGameCardKeyArea(&gc_key_area) || !filename) goto end; if (!dumpGameCardKeyArea(&gc_key_area) || !filename) goto end;
@ -493,7 +493,7 @@ static bool sendGameCardCertificateViaUsb(void)
FsGameCardCertificate gc_cert = {0}; FsGameCardCertificate gc_cert = {0};
bool success = false; bool success = false;
u32 crc = 0; u32 crc = 0;
char *filename = titleGenerateGameCardFileName(TitleFileNameConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars); char *filename = titleGenerateGameCardFileName(TitleNamingConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars);
if (!gamecardGetCertificate(&gc_cert) || !filename) if (!gamecardGetCertificate(&gc_cert) || !filename)
{ {
@ -541,7 +541,7 @@ static bool sendGameCardImageViaUsb(void)
consolePrint("gamecard image dump\nappend key area: %s | keep certificate: %s | trim dump: %s\n\n", g_appendKeyArea ? "yes" : "no", g_keepCertificate ? "yes" : "no", g_trimDump ? "yes" : "no"); consolePrint("gamecard image dump\nappend key area: %s | keep certificate: %s | trim dump: %s\n\n", g_appendKeyArea ? "yes" : "no", g_keepCertificate ? "yes" : "no", g_trimDump ? "yes" : "no");
filename = titleGenerateGameCardFileName(TitleFileNameConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars); filename = titleGenerateGameCardFileName(TitleNamingConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars);
if (!filename) if (!filename)
{ {
consolePrint("failed to generate gamecard filename!\n"); consolePrint("failed to generate gamecard filename!\n");