From 617746606d881f57314fc48f93df1a8e9e086d5b Mon Sep 17 00:00:00 2001 From: Ofek Date: Fri, 14 Apr 2017 13:08:17 +0300 Subject: [PATCH] Trophy fixed (#2687) --- rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp b/rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp index 301538753c..c95ae73d47 100644 --- a/rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp @@ -241,8 +241,15 @@ s32 sceNpTrophyRegisterContext(ppu_thread& CPU, u32 context, u32 handle, vm::ptr ctxt->tropusr.reset(tropusr); // TODO: Callbacks - statusCb(CPU, context, SCE_NP_TROPHY_STATUS_INSTALLED, 100, 100, arg); - statusCb(CPU, context, SCE_NP_TROPHY_STATUS_PROCESSING_COMPLETE, 100, 100, arg); + if (statusCb(CPU, context, SCE_NP_TROPHY_STATUS_INSTALLED, 100, 100, arg) < 0) + { + return SCE_NP_TROPHY_ERROR_PROCESSING_ABORTED; + } + + if (statusCb(CPU, context, SCE_NP_TROPHY_STATUS_PROCESSING_COMPLETE, 100, 100, arg) < 0) + { + return SCE_NP_TROPHY_ERROR_PROCESSING_ABORTED; + } return CELL_OK; }