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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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