sceKernelLoadStartModule: convert relative path to absolute

This commit is contained in:
mailwl 2025-03-07 18:17:07 +03:00
parent 8b7eed3ffc
commit d4f1c208f2

View File

@ -41,7 +41,8 @@ s32 PS4_SYSV_ABI sceKernelLoadStartModule(const char* moduleFileName, size_t arg
}
auto* mnt = Common::Singleton<Core::FileSys::MntPoints>::Instance();
const auto path = mnt->GetHostPath(moduleFileName);
const auto path = mnt->GetHostPath(
moduleFileName[0] == '/' ? moduleFileName : std::string("/app0/") + moduleFileName);
// Load PRX module and relocate any modules that import it.
auto* linker = Common::Singleton<Core::Linker>::Instance();