mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
sceKernelLoadStartModule: convert relative path to absolute
This commit is contained in:
parent
8b7eed3ffc
commit
d4f1c208f2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user