From bc39c9be6315db277817fa458c04cfd30d0fb5d3 Mon Sep 17 00:00:00 2001 From: Ivan Chikish Date: Fri, 14 Jul 2023 15:04:21 +0300 Subject: [PATCH] Linker: search /app0/sce_module/ Currently limited, requires decrypted modules with .elf ext --- rpcsx-os/linker.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rpcsx-os/linker.cpp b/rpcsx-os/linker.cpp index 6fb9ec904..cf178a842 100644 --- a/rpcsx-os/linker.cpp +++ b/rpcsx-os/linker.cpp @@ -902,6 +902,15 @@ Ref 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;