Linker: search /app0/sce_module/

Currently limited, requires decrypted modules with .elf ext
This commit is contained in:
Ivan Chikish 2023-07-14 15:04:21 +03:00
parent cca5a79200
commit bc39c9be63

View file

@ -902,6 +902,15 @@ Ref<orbis::Module> rx::linker::loadModuleByName(std::string_view name,
return createSceFreeTypeFull(process);
}
{
std::string filePath = "/app0/sce_module/";
filePath += name;
filePath += ".elf";
if (auto result = rx::linker::loadModuleFile(filePath.c_str(), process)) {
return result;
}
}
for (auto path : {"/system/common/lib/", "/system/priv/lib/"}) {
auto filePath = std::string(path);
filePath += name;