From 0bbab3eae53d01afbcdb16e97043b58e26fb54bd Mon Sep 17 00:00:00 2001 From: Nikita Savyolov Date: Sat, 2 Sep 2023 13:34:57 +0300 Subject: [PATCH] [rpcsx-os] linker: search .prx in app module directory (#53) --- rpcsx-os/linker.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcsx-os/linker.cpp b/rpcsx-os/linker.cpp index 157ac14d9..4b4dd1a49 100644 --- a/rpcsx-os/linker.cpp +++ b/rpcsx-os/linker.cpp @@ -1034,6 +1034,11 @@ Ref 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/"}) {