mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-14 12:40:11 +00:00
Fix memory stick status check - now saving works in Lumines
This commit is contained in:
parent
14a8259a6c
commit
d640bdd032
@ -494,9 +494,16 @@ u32 sceIoDevctl(const char *name, int cmd, u32 argAddr, int argLen, u32 outPtr,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x02025806: // Memory stick inserted?
|
|
||||||
case 0x02025801: // Memstick Driver status?
|
case 0x02025801: // Memstick Driver status?
|
||||||
if (Memory::IsValidAddress(outPtr)) {
|
if (Memory::IsValidAddress(outPtr) && outLen >= 4) {
|
||||||
|
Memory::Write_U32(4, outPtr); // JPSCP: The right return value is 4 for some reason
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
return ERROR_MEMSTICK_DEVCTL_BAD_PARAMS;
|
||||||
|
}
|
||||||
|
|
||||||
|
case 0x02025806: // Memory stick inserted?
|
||||||
|
if (Memory::IsValidAddress(outPtr) && outLen >= 4) {
|
||||||
Memory::Write_U32(1, outPtr);
|
Memory::Write_U32(1, outPtr);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user