mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 11:35:45 +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;
|
||||
}
|
||||
handle = linker->LoadModule(path, true);
|
||||
if (handle == -1) {
|
||||
return ORBIS_KERNEL_ERROR_EINVAL;
|
||||
}
|
||||
auto* module = linker->GetModule(handle);
|
||||
linker->RelocateAnyImports(module);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue