mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Trophy fixes
This commit is contained in:
parent
686d3eb1df
commit
4c1459534d
1 changed files with 6 additions and 5 deletions
|
@ -309,16 +309,17 @@ error_code sceNpTrophyRegisterContext(ppu_thread& ppu, u32 context, u32 handle,
|
||||||
ctxt->tropusr.reset(tropusr);
|
ctxt->tropusr.reset(tropusr);
|
||||||
|
|
||||||
// TODO: Callbacks
|
// TODO: Callbacks
|
||||||
|
// From RE-ing a game's state machine, it seems the possible order is one of the following:
|
||||||
|
// * Install (Not installed) - Setup - Progress * ? - Finalize - Complete - Installed
|
||||||
|
// * Reinstall (Corrupted) - Setup - Progress * ? - Finalize - Complete - Installed
|
||||||
|
// * 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)
|
if (statusCb(ppu, context, SCE_NP_TROPHY_STATUS_INSTALLED, 100, 100, arg) < 0)
|
||||||
{
|
{
|
||||||
return SCE_NP_TROPHY_ERROR_PROCESSING_ABORTED;
|
return SCE_NP_TROPHY_ERROR_PROCESSING_ABORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (statusCb(ppu, context, SCE_NP_TROPHY_STATUS_PROCESSING_COMPLETE, 100, 100, arg) < 0)
|
|
||||||
{
|
|
||||||
return SCE_NP_TROPHY_ERROR_PROCESSING_ABORTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue