From ff0a2a385c0a65e5b574e95574cc1e8e51cd9200 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Fri, 23 Jul 2021 08:42:20 -0400 Subject: [PATCH] Fix PoCs. --- code_templates/nsp_dumper_stor.c | 2 +- code_templates/nsp_dumper_usb.c | 2 +- code_templates/usb_gc_dumper.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code_templates/nsp_dumper_stor.c b/code_templates/nsp_dumper_stor.c index 3542434..689aeaa 100644 --- a/code_templates/nsp_dumper_stor.c +++ b/code_templates/nsp_dumper_stor.c @@ -187,7 +187,7 @@ static void nspDump(TitleInfo *title_info, u64 free_space) } /* 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"); goto end; diff --git a/code_templates/nsp_dumper_usb.c b/code_templates/nsp_dumper_usb.c index 3d80d22..4208031 100644 --- a/code_templates/nsp_dumper_usb.c +++ b/code_templates/nsp_dumper_usb.c @@ -178,7 +178,7 @@ static void dump_thread_func(void *arg) } /* 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"); goto end; diff --git a/code_templates/usb_gc_dumper.c b/code_templates/usb_gc_dumper.c index ba42595..029f910 100644 --- a/code_templates/usb_gc_dumper.c +++ b/code_templates/usb_gc_dumper.c @@ -461,7 +461,7 @@ static bool sendGameCardKeyAreaViaUsb(void) GameCardKeyArea gc_key_area = {0}; bool success = false; 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; @@ -493,7 +493,7 @@ static bool sendGameCardCertificateViaUsb(void) FsGameCardCertificate gc_cert = {0}; bool success = false; u32 crc = 0; - char *filename = titleGenerateGameCardFileName(TitleFileNameConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars); + char *filename = titleGenerateGameCardFileName(TitleNamingConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars); 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"); - filename = titleGenerateGameCardFileName(TitleFileNameConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars); + filename = titleGenerateGameCardFileName(TitleNamingConvention_Full, TitleFileNameIllegalCharReplaceType_IllegalFsChars); if (!filename) { consolePrint("failed to generate gamecard filename!\n");