Skip to content

Commit

Permalink
Don't reply to SetPowerOffCallback RPC call.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Feb 22, 2024
1 parent 6ecc4d2 commit b914f43
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/iop/Iop_Cdvdfsv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,15 @@ bool CCdvdfsv::Invoke596(uint32 method, uint32* args, uint32 argsSize, uint32* r
{
switch(method)
{
case 0x01:
//SetPowerOffCallback
//Some versions of the EE CDVD library will invoke this in CdInit. It seems to be called in a no-wait mode,
//and it's possible that the reply to this call is only sent once. Sending it always seems to cause
//problems in some games (Hunter x Hunter: Ryuumyaku no Saidan) that use CD callbacks and call CdInit
//many times.
CLog::GetInstance().Print(LOG_NAME, "SetPowerOffCallback();\r\n");
return false;
break;
default:
CLog::GetInstance().Warn(LOG_NAME, "Unknown method invoked (0x%08X, 0x%08X).\r\n", 0x596, method);
break;
Expand Down

0 comments on commit b914f43

Please sign in to comment.