mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-07 00:28:41 +00:00
DirectQueryAvailable fix
Fixes error cases to be more hardware accurate.
This commit is contained in:
parent
edbe39a1ec
commit
a242e663f7
1 changed files with 0 additions and 6 deletions
|
@ -106,12 +106,6 @@ s32 PS4_SYSV_ABI sceKernelAvailableDirectMemorySize(u64 searchStart, u64 searchE
|
||||||
if (physAddrOut == nullptr || sizeOut == nullptr) {
|
if (physAddrOut == nullptr || sizeOut == nullptr) {
|
||||||
return ORBIS_KERNEL_ERROR_EINVAL;
|
return ORBIS_KERNEL_ERROR_EINVAL;
|
||||||
}
|
}
|
||||||
if (searchEnd > sceKernelGetDirectMemorySize()) {
|
|
||||||
return ORBIS_KERNEL_ERROR_EINVAL;
|
|
||||||
}
|
|
||||||
if (searchEnd <= searchStart) {
|
|
||||||
return ORBIS_KERNEL_ERROR_ENOMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto* memory = Core::Memory::Instance();
|
auto* memory = Core::Memory::Instance();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue