mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
asserts for system module
This commit is contained in:
parent
96c5f3a66a
commit
4631b87f0c
@ -47,23 +47,12 @@ s32 PS4_SYSV_ABI sceKernelLoadStartModule(const char* moduleFileName, size_t arg
|
|||||||
s32 handle;
|
s32 handle;
|
||||||
|
|
||||||
if (guest_path[0] == '/') {
|
if (guest_path[0] == '/') {
|
||||||
path = mnt->GetHostPath("/system/common/lib" + guest_path);
|
|
||||||
handle = linker->LoadAndStartModule(path, args, argp, pRes);
|
|
||||||
if (handle != -1) {
|
|
||||||
return handle;
|
|
||||||
}
|
|
||||||
|
|
||||||
path = mnt->GetHostPath("/system/priv/lib" + guest_path);
|
|
||||||
handle = linker->LoadAndStartModule(path, args, argp, pRes);
|
|
||||||
if (handle != -1) {
|
|
||||||
return handle;
|
|
||||||
}
|
|
||||||
|
|
||||||
path = mnt->GetHostPath(guest_path);
|
path = mnt->GetHostPath(guest_path);
|
||||||
handle = linker->LoadAndStartModule(path, args, argp, pRes);
|
handle = linker->LoadAndStartModule(path, args, argp, pRes);
|
||||||
if (handle != -1) {
|
if (handle != -1) {
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
ASSERT_MSG(0, "Trying to load system module {}", guest_path);
|
||||||
} else {
|
} else {
|
||||||
auto* process_params = linker->GetProcParam();
|
auto* process_params = linker->GetProcParam();
|
||||||
if (process_params->sdk_version > 0x3ffffff) {
|
if (process_params->sdk_version > 0x3ffffff) {
|
||||||
@ -72,11 +61,7 @@ s32 PS4_SYSV_ABI sceKernelLoadStartModule(const char* moduleFileName, size_t arg
|
|||||||
if (guest_path.contains("libScePigletv2VSH") ||
|
if (guest_path.contains("libScePigletv2VSH") ||
|
||||||
guest_path.contains("libSceSysCore") ||
|
guest_path.contains("libSceSysCore") ||
|
||||||
guest_path.contains("libSceVideoCoreServerInterface")) {
|
guest_path.contains("libSceVideoCoreServerInterface")) {
|
||||||
path = mnt->GetHostPath(guest_path);
|
ASSERT_MSG(0, "Trying to load system module {}", guest_path);
|
||||||
handle = linker->LoadAndStartModule(path, args, argp, pRes);
|
|
||||||
if (handle != -1) {
|
|
||||||
return handle;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// loading prohibited
|
// loading prohibited
|
||||||
return ORBIS_KERNEL_ERROR_ENOENT;
|
return ORBIS_KERNEL_ERROR_ENOENT;
|
||||||
@ -93,17 +78,7 @@ s32 PS4_SYSV_ABI sceKernelLoadStartModule(const char* moduleFileName, size_t arg
|
|||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
if ((flags & 0x10000) != 0) {
|
if ((flags & 0x10000) != 0) {
|
||||||
path = mnt->GetHostPath("/system/priv/lib/" + guest_path);
|
ASSERT_MSG(0, "Trying to load system module {}", guest_path);
|
||||||
handle = linker->LoadAndStartModule(path, args, argp, pRes);
|
|
||||||
if (handle != -1) {
|
|
||||||
return handle;
|
|
||||||
}
|
|
||||||
|
|
||||||
path = mnt->GetHostPath("/system/common/lib" + guest_path);
|
|
||||||
handle = linker->LoadAndStartModule(path, args, argp, pRes);
|
|
||||||
if (handle != -1) {
|
|
||||||
return handle;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
path = mnt->GetHostPath(guest_path);
|
path = mnt->GetHostPath(guest_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user