diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index 7ae3704948..7466869709 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -3,6 +3,7 @@ #include "Emu/system_utils.hpp" #include "Emu/VFS.h" #include "Emu/Cell/PPUModule.h" +#include "Emu/Cell/Modules/cellUserInfo.h" #include "Emu/Io/interception.h" #include "Utilities/StrUtil.h" @@ -3354,7 +3355,7 @@ error_code sceNpManagerGetChatRestrictionFlag(vm::ptr isRestricted) error_code sceNpManagerGetCachedInfo(CellSysutilUserId userId, vm::ptr param) { - sceNp.todo("sceNpManagerGetCachedInfo(userId=%d, param=*0x%x)", userId, param); + sceNp.warning("sceNpManagerGetCachedInfo(userId=%d, param=*0x%x)", userId, param); auto& nph = g_fxo->get>(); @@ -3368,6 +3369,17 @@ error_code sceNpManagerGetCachedInfo(CellSysutilUserId userId, vm::ptrsize = sizeof(SceNpManagerCacheParam); + param->onlineId = nph.get_online_id(); + param->npId = nph.get_npid(); + param->onlineName = nph.get_online_name(); + param->avatarUrl = nph.get_avatar_url(); + return CELL_OK; }