mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
More explicit error checking
This commit is contained in:
1 parent
3c81d6b121
commit
5dfeaed63b
5 files changed
+58
-33
No files matched your search
+12
-4
@@ -409,16 +409,24 @@ static int sceKernelVolatileMemLock(int type, u32 paddr, u32 psize) {
|
||||
case SCE_KERNEL_ERROR_CAN_NOT_WAIT:
|
||||
{
|
||||
WARN_LOG(Log::HLE, "sceKernelVolatileMemLock(%i, %08x, %08x): dispatch disabled", type, paddr, psize);
|
||||
Memory::Write_U32(0x08400000, paddr);
|
||||
Memory::Write_U32(0x00400000, psize);
|
||||
if (Memory::IsValid4AlignedAddress(paddr)) {
|
||||
Memory::WriteUnchecked_U32(0x08400000, paddr);
|
||||
}
|
||||
if (Memory::IsValid4AlignedAddress(psize)) {
|
||||
Memory::WriteUnchecked_U32(0x00400000, psize);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case SCE_KERNEL_ERROR_ILLEGAL_CONTEXT:
|
||||
{
|
||||
WARN_LOG(Log::HLE, "sceKernelVolatileMemLock(%i, %08x, %08x): in interrupt", type, paddr, psize);
|
||||
Memory::Write_U32(0x08400000, paddr);
|
||||
Memory::Write_U32(0x00400000, psize);
|
||||
if (Memory::IsValid4AlignedAddress(paddr)) {
|
||||
Memory::WriteUnchecked_U32(0x08400000, paddr);
|
||||
}
|
||||
if (Memory::IsValid4AlignedAddress(psize)) {
|
||||
Memory::WriteUnchecked_U32(0x00400000, psize);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user