Linker: search sprx files in sce_module

This commit is contained in:
Ivan Chikish 2023-08-04 17:55:36 +03:00
parent 246db3b2c9
commit 0e71ef38d0

View file

@ -954,6 +954,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() - 4);
filePath += ".sprx";
if (auto result = rx::linker::loadModuleFile(filePath.c_str(), thread)) {
return result;
}
}
for (auto path : {"/system/common/lib/", "/system/priv/lib/"}) {