mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 19:23:47 +01:00
Smash Court Tennis 3 unprintable thread name hack
This commit is contained in:
1 parent
6cafada957
commit
61a89de6a7
1 file changed
+8
@@ -1821,6 +1821,14 @@ int __KernelCreateThread(const char *threadName, SceUID moduleID, u32 entry, u32
|
||||
ERROR_LOG(Log::sceKernel, "__KernelCreateThread: NULL thread name");
|
||||
return SCE_KERNEL_ERROR_ERROR;
|
||||
}
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if ((u8)threadName[i] >= 0xf0) {
|
||||
WARN_LOG(Log::sceKernel, "Overriding bad thread name to badThreadName. first 4 bytes: %02x %02x %02x %02x", threadName[0], threadName[1], threadName[2], threadName[3]);
|
||||
// Smash Court Tennis gives us an unprintable thread name, messing up logs.
|
||||
threadName = "badThreadName";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ((u32)stacksize < 0x200) {
|
||||
WARN_LOG_REPORT(Log::sceKernel, "bogus thread stack size %08x", stacksize);
|
||||
|
||||
Reference in new issue
Block a user