From 4e1ff145a5a18ad89b539d89563a5c1dd69628eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 27 May 2025 09:11:51 +0200 Subject: [PATCH] Logging update --- Core/HLE/sceUmd.cpp | 11 +++++++---- Core/PSPLoaders.cpp | 4 +++- assets/compat.ini | 3 +++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Core/HLE/sceUmd.cpp b/Core/HLE/sceUmd.cpp index 0d79c595ee..2b73329eed 100644 --- a/Core/HLE/sceUmd.cpp +++ b/Core/HLE/sceUmd.cpp @@ -496,20 +496,23 @@ bool getUMDReplacePermit() { static u32 sceUmdReplaceProhibit() { if (g_UMDReplacePermit) { - INFO_LOG(Log::sceIo, "sceUmdReplaceProhibit() - prohibited"); g_UMDReplacePermit = false; System_Notify(SystemNotification::SWITCH_UMD_UPDATED); + return hleLogDebug(Log::sceIo, 0, "switched state to prohibited"); + } else { + return hleLogDebug(Log::sceIo, 0); } - return hleLogDebug(Log::sceIo, 0); } static u32 sceUmdReplacePermit() { if (!g_UMDReplacePermit) { - INFO_LOG(Log::sceIo, "sceUmdReplacePermit() - permitted"); + //INFO_LOG(Log::sceIo, "sceUmdReplacePermit() - permitted"); g_UMDReplacePermit = true; System_Notify(SystemNotification::SWITCH_UMD_UPDATED); + return hleLogDebug(Log::sceIo, 0, "switched state to permitted"); + } else { + return hleLogDebug(Log::sceIo, 0); } - return hleLogDebug(Log::sceIo, 0); } const HLEFunction sceUmdUser[] = diff --git a/Core/PSPLoaders.cpp b/Core/PSPLoaders.cpp index 05720f8e1d..e3d5e0e9d4 100644 --- a/Core/PSPLoaders.cpp +++ b/Core/PSPLoaders.cpp @@ -204,7 +204,9 @@ bool Load_PSP_ISO(FileLoader *fileLoader, std::string *error_string) { // Bypass Chinese translation patches, see comment above. for (size_t i = 0; i < ARRAY_SIZE(altBootNames); i++) { if (pspFileSystem.GetFileInfo(altBootNames[i]).exists) { - bootpath = altBootNames[i]; + WARN_LOG(Log::Boot, "Bypassing suspected translation patch. Booting '%s' instead of '%s'.", altBootNames[i], bootpath.c_str()); + bootpath = altBootNames[i]; + // break; // should have a break here, but it would effectively reverse the evaluation order. } } diff --git a/assets/compat.ini b/assets/compat.ini index 4afac31ba4..7a0c4d105c 100644 --- a/assets/compat.ini +++ b/assets/compat.ini @@ -1158,6 +1158,9 @@ ULAS42316 = true UCJS10002 = true UCJS10039 = true UCJS18012 = true +# WWE All Stars +ULUS10544 = true +ULES01510 = true [MemstickFixedFree] # Assassin's Creed : Bloodlines - issue #12761