mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add some logging to sceIoDevCtl
This commit is contained in:
parent
4cd99b527a
commit
e775bc385f
1 changed files with 19 additions and 4 deletions
|
@ -511,11 +511,26 @@ void sceIoDevctl() //(const char *name, int cmd, void *arg, size_t arglen, void
|
|||
}
|
||||
}
|
||||
|
||||
if (!strcmp(name, "fatms0:") && cmd == 0x02425823)
|
||||
if (!strcmp(name, "fatms0:"))
|
||||
{
|
||||
switch (cmd) {
|
||||
case 0x02425823:
|
||||
if (Memory::IsValidAddress(outPtr))
|
||||
Memory::Write_U32(1, outPtr); // TODO: Make a headless mode for running tests!
|
||||
|
||||
break;
|
||||
case 0x02415821: // MScmRegisterMSInsertEjectCallback
|
||||
{
|
||||
u32 cbId = Memory::Read_U32(argAddr);
|
||||
ERROR_LOG(HLE, "sceIoDevCtl: Registering memstick callbacks not yet supported (%08x)", cbId);
|
||||
}
|
||||
break;
|
||||
case 0x02415822: // MScmUnregisterMSInsertEjectCallback
|
||||
{
|
||||
u32 cbId = Memory::Read_U32(argAddr);
|
||||
ERROR_LOG(HLE, "sceIoDevCtl: Unregistering memstick callbacks not yet supported (%08x)", cbId);
|
||||
}
|
||||
break;
|
||||
}
|
||||
RETURN(0);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue