Move to PSPMSgDialog

This commit is contained in:
sum2012 2014-01-31 15:00:05 +08:00
parent 90e3f20752
commit 4c4d7c7a14
2 changed files with 9 additions and 8 deletions

View File

@ -290,8 +290,13 @@ int PSPMsgDialog::Update(int animSpeed)
int PSPMsgDialog::Abort()
{
status = SCE_UTILITY_STATUS_FINISHED;
//Fix Katekyoushi Hitman Reborn! Battle Arena
if (status == SCE_UTILITY_STATUS_NONE)
return SCE_ERROR_UTILITY_INVALID_STATUS;
else {
status = SCE_UTILITY_STATUS_FINISHED;
return 0;
}
}
int PSPMsgDialog::Shutdown(bool force)

View File

@ -312,13 +312,9 @@ int sceUtilityMsgDialogAbort()
WARN_LOG(SCEUTILITY, "sceUtilityMsgDialogAbort(): wrong dialog type");
return SCE_ERROR_UTILITY_WRONG_TYPE;
}
//Fix Katekyoushi Hitman Reborn! Battle Arena
int status = msgDialog.GetStatus();
DEBUG_LOG(SCEUTILITY, "sceUtilityMsgDialogAbort() status %08x",status);
if (status == 4)
return SCE_ERROR_UTILITY_INVALID_STATUS;
else
return msgDialog.Abort();
DEBUG_LOG(SCEUTILITY, "sceUtilityMsgDialogAbort()");
return msgDialog.Abort();
}