mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-28 22:33:17 +00:00
kernel: Fix module finding
Patch by Elbread
This commit is contained in:
parent
f587931ed3
commit
bab00dbca8
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ s32 PS4_SYSV_ABI sceKernelLoadStartModule(const char* moduleFileName, size_t arg
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
handle = linker->LoadModule(path, true);
|
handle = linker->LoadModule(path, true);
|
||||||
|
if (handle == -1) {
|
||||||
|
return ORBIS_KERNEL_ERROR_EINVAL;
|
||||||
|
}
|
||||||
auto* module = linker->GetModule(handle);
|
auto* module = linker->GetModule(handle);
|
||||||
linker->RelocateAnyImports(module);
|
linker->RelocateAnyImports(module);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue