[rpcsx-os] linker: search .prx in app module directory (#53)

This commit is contained in:
Nikita Savyolov 2023-09-02 13:34:57 +03:00 committed by GitHub
parent 47d7364af8
commit 0bbab3eae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1034,6 +1034,11 @@ Ref<orbis::Module> rx::linker::loadModuleByName(std::string_view name,
if (auto result = rx::linker::loadModuleFile(filePath.c_str(), thread)) {
return result;
}
filePath.resize(filePath.size() - 5);
filePath += ".prx";
if (auto result = rx::linker::loadModuleFile(filePath.c_str(), thread)) {
return result;
}
}
for (auto path : {"/system/common/lib/", "/system/priv/lib/"}) {