From 72ff59de956636b237c44e3ae501b28139accb51 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 29 Jul 2023 14:18:23 +0200 Subject: [PATCH] Always log message about faking FSGetClientNum result --- source/logger.h | 2 ++ source/patches/patches_replacements.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/logger.h b/source/logger.h index 296e85f..567268c 100644 --- a/source/logger.h +++ b/source/logger.h @@ -41,6 +41,7 @@ extern "C" { #define DEBUG_FUNCTION_LINE_WARN(FMT, ARGS...) LOG_EX_DEFAULT(WHBLogPrintf, "## WARN## ", "", FMT, ##ARGS) #define DEBUG_FUNCTION_LINE_ERR(FMT, ARGS...) LOG_EX_DEFAULT(WHBLogPrintf, "##ERROR## ", "", FMT, ##ARGS) +#define DEBUG_FUNCTION_LINE_INFO(FMT, ARGS...) LOG_EX_DEFAULT(WHBLogPrintf, "## INFO## ", "", FMT, ##ARGS) #define DEBUG_FUNCTION_LINE_ERR_LAMBDA(FILENAME, FUNCTION, LINE, FMT, ARGS...) LOG_EX(FILENAME, FUNCTION, LINE, WHBLogPrintf, "##ERROR## ", "", FMT, ##ARGS); @@ -58,6 +59,7 @@ extern "C" { #define DEBUG_FUNCTION_LINE_WARN(FMT, ARGS...) LOG_EX_DEFAULT(OSReport, "## WARN## ", "\n", FMT, ##ARGS) #define DEBUG_FUNCTION_LINE_ERR(FMT, ARGS...) LOG_EX_DEFAULT(OSReport, "##ERROR## ", "\n", FMT, ##ARGS) +#define DEBUG_FUNCTION_LINE_INFO(FMT, ARGS...) LOG_EX_DEFAULT(OSReport, "## INFO## ", "\n", FMT, ##ARGS) #define DEBUG_FUNCTION_LINE_ERR_LAMBDA(FILENAME, FUNCTION, LINE, FMT, ARGS...) LOG_EX(FILENAME, FUNCTION, LINE, OSReport, "##ERROR## ", "\n", FMT, ##ARGS); diff --git a/source/patches/patches_replacements.cpp b/source/patches/patches_replacements.cpp index 1280b11..398fa1b 100644 --- a/source/patches/patches_replacements.cpp +++ b/source/patches/patches_replacements.cpp @@ -42,7 +42,7 @@ DECL_FUNCTION(uint32_t, FSGetClientNum) { titleID == 0x0005000010115D00 || // The Smurfs™ 2 EUR titleID == 0x0005000010113300 // The Smurfs™ 2 USA ) { - DEBUG_FUNCTION_LINE("Fake FSGetClientNum num to %d instead of %d", gNonHomebrewFSClientCount, real_FSGetClientNum()); + DEBUG_FUNCTION_LINE_INFO("Fake FSGetClientNum num to %d instead of %d", gNonHomebrewFSClientCount, real_FSGetClientNum()); return gNonHomebrewFSClientCount; } return real_FSGetClientNum();