Always load sceCcc if possible (disable HLE). PRX dumping fix.

This commit is contained in:
Henrik Rydgård
2025-04-06 23:34:16 +02:00
parent b52e7913eb
commit a870c2155d
2 changed files with 11 additions and 4 deletions
+9 -3
View File
@@ -1180,9 +1180,15 @@ static PSPModule *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 load
// If we've made it this far, it should be safe to dump.
// Copy the name to ensure it's null terminated.
char name[32]{};
strncpy(name, head->modname, ARRAY_SIZE(head->modname));
DumpFileIfEnabled(ptr, (u32)elfSize, name, DumpFileType::EBOOT);
// TODO: How do we determine if it's the eboot?
if (endsWith(filename, "BOOT.BIN")) {
DumpFileIfEnabled(ptr, (u32)elfSize, "EBOOT.BIN", DumpFileType::EBOOT);
} else {
char name[32]{};
strncpy(name, head->modname, ARRAY_SIZE(head->modname));
DumpFileIfEnabled(ptr, (u32)elfSize, name, DumpFileType::PRX);
}
}
}