Revert "libkernel: handle special case in path for load module (#2269)" (#2298)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions

This reverts commit ec0cf25097.
This commit is contained in:
georgemoralis 2025-01-31 12:54:16 +02:00 committed by GitHub
parent ec0cf25097
commit 8aea0fc7ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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