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 f587931ed3
commit bab00dbca8

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);