From 42f8b4953192ece0ed8d59ab307cf2e4aa1c5745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 19 Jan 2025 22:34:38 +0100 Subject: [PATCH] Unbreak Tekken 6, logging fix --- Core/HLE/sceKernelInterrupt.cpp | 2 +- Core/HLE/sceKernelModule.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceKernelInterrupt.cpp b/Core/HLE/sceKernelInterrupt.cpp index b33cfea25a..1fefb03932 100644 --- a/Core/HLE/sceKernelInterrupt.cpp +++ b/Core/HLE/sceKernelInterrupt.cpp @@ -600,7 +600,7 @@ static u32 sceKernelMemset(u32 addr, u32 fillc, u32 n) { } } NotifyMemInfo(MemBlockFlags::WRITE, addr, n, "KernelMemset"); - return hleLogDebug(Log::sceIntc, addr); + return hleLogDebug(Log::sceKernel, addr); } static u32 sceKernelMemcpy(u32 dst, u32 src, u32 size) { diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index fec40ab21d..5902abec1a 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -2143,7 +2143,8 @@ u32 sceKernelLoadModule(const char *name, u32 flags, u32 optionAddr) { if (!module) { if (magic == 0x46535000) { - // TODO: What's actually going on here? + // TODO: What's actually going on here? This is needed to keep Tekken 6 working, the "proper" error breaks it, when it tries to load PARAM.SFO as a module. + error = -1; return hleDelayResult(hleLogError(Log::Loader, error, "Game tried to load an SFO as a module. Go figure? Magic = %08x", magic), "module loaded", 500); }