Module: Process relocations on threads.

There's usually quite some, and using threads can halve the load time.
ELF loading isn't terribly slow, but it adds up.
This commit is contained in:
Unknown W. Brackets committed 2021-04-16 00:41:56 -07:00
1 parent e7012f8f88
commit 6ee944a0a6
2 files changed
+74 -73

No files matched your search

+1 -1
View File
@@ -1268,7 +1268,7 @@ static PSPModule *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 load
ElfReader reader((void*)ptr, elfSize);
int result = reader.LoadInto(loadAddress, fromTop);
if (result != SCE_KERNEL_ERROR_OK) {
if (result != SCE_KERNEL_ERROR_OK) {
ERROR_LOG(SCEMODULE, "LoadInto failed with error %08x",result);
if (newptr)
delete [] newptr;