From 4c1459534d0ec328d0b332c0fdc8da1ffa7db7f1 Mon Sep 17 00:00:00 2001 From: Ofek Date: Tue, 10 Jul 2018 18:02:41 +0300 Subject: [PATCH] Trophy fixes --- rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp b/rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp index 0599d43c9c..8e7063efa9 100644 --- a/rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp @@ -309,16 +309,17 @@ error_code sceNpTrophyRegisterContext(ppu_thread& ppu, u32 context, u32 handle, ctxt->tropusr.reset(tropusr); // 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) { 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; }