1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 03:02:53 +01:00

Fix trophy regression

Hopefully
Correct status order
This commit is contained in:
Ofek 2018-09-07 19:26:59 +03:00 committed by Ivan
parent 27474316fd
commit d7b0344091

View File

@ -315,10 +315,20 @@ error_code sceNpTrophyRegisterContext(ppu_thread& ppu, u32 context, u32 handle,
// * Update (Required update) - Setup - Progress * ? - Finalize - Complete - Installed
// * Installed
// We will go with the easy path of Installed, and that's it.
if (statusCb(ppu, context, SCE_NP_TROPHY_STATUS_INSTALLED, 100, 100, arg) < 0)
auto statuses = {SCE_NP_TROPHY_STATUS_NOT_INSTALLED,
SCE_NP_TROPHY_STATUS_PROCESSING_SETUP,
SCE_NP_TROPHY_STATUS_PROCESSING_PROGRESS,
SCE_NP_TROPHY_STATUS_PROCESSING_FINALIZE,
SCE_NP_TROPHY_STATUS_PROCESSING_COMPLETE};
for (auto status : statuses)
{
if (statusCb(ppu, context, status, 100, 100, arg) < 0)
{
return SCE_NP_TROPHY_ERROR_PROCESSING_ABORTED;
}
}
return CELL_OK;
}