kernel: Fix module finding

Patch by Elbread
This commit is contained in:
TheTurtle 2024-12-13 18:23:01 +02:00 committed by GitHub
parent ac626f6004
commit 5d55b2b4ec

View file

@ -50,6 +50,9 @@ s32 PS4_SYSV_ABI sceKernelLoadStartModule(const char* moduleFileName, size_t arg
return handle;
}
handle = linker->LoadModule(path, true);
if (handle == -1) {
return ORBIS_KERNEL_ERROR_EINVAL;
}
auto* module = linker->GetModule(handle);
linker->RelocateAnyImports(module);