mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
sceNpTrophy: Add logging of commSign
This commit is contained in:
parent
89905bc1c4
commit
418968d974
1 changed files with 24 additions and 0 deletions
|
@ -154,6 +154,28 @@ void fmt_class_string<SceNpTrophyError>::format(std::string& out, u64 arg)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <>
|
||||||
|
void fmt_class_string<SceNpCommunicationSignature>::format(std::string& out, u64 arg)
|
||||||
|
{
|
||||||
|
const auto& sign = get_object(arg);
|
||||||
|
|
||||||
|
// Format as a C byte array for ease of use
|
||||||
|
fmt::append(out, "{ ");
|
||||||
|
|
||||||
|
for (std::size_t i = 0;; i++)
|
||||||
|
{
|
||||||
|
if (i == std::size(sign.data) - 1)
|
||||||
|
{
|
||||||
|
fmt::append(out, "0x%02X", sign.data[i]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt::append(out, "0x%02X, ", sign.data[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt::append(out, " }");
|
||||||
|
}
|
||||||
|
|
||||||
// Helpers
|
// Helpers
|
||||||
|
|
||||||
static error_code NpTrophyGetTrophyInfo(const trophy_context_t* ctxt, s32 trophyId, SceNpTrophyDetails* details, SceNpTrophyData* data);
|
static error_code NpTrophyGetTrophyInfo(const trophy_context_t* ctxt, s32 trophyId, SceNpTrophyDetails* details, SceNpTrophyData* data);
|
||||||
|
@ -331,6 +353,8 @@ error_code sceNpTrophyCreateContext(vm::ptr<u32> context, vm::cptr<SceNpCommunic
|
||||||
return SCE_NP_TROPHY_ERROR_INVALID_ARGUMENT;
|
return SCE_NP_TROPHY_ERROR_INVALID_ARGUMENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sceNpTrophy.notice("sceNpTrophyCreateContext(): commSign = %s", *commSign);
|
||||||
|
|
||||||
const auto trophy_manager = g_fxo->get<sce_np_trophy_manager>();
|
const auto trophy_manager = g_fxo->get<sce_np_trophy_manager>();
|
||||||
|
|
||||||
std::scoped_lock lock(trophy_manager->mtx);
|
std::scoped_lock lock(trophy_manager->mtx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue