mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-28 05:45:13 -06:00
sceNpTrophy: Add logging of commSign
This commit is contained in:
parent
89905bc1c4
commit
418968d974
@ -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
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
sceNpTrophy.notice("sceNpTrophyCreateContext(): commSign = %s", *commSign);
|
||||
|
||||
const auto trophy_manager = g_fxo->get<sce_np_trophy_manager>();
|
||||
|
||||
std::scoped_lock lock(trophy_manager->mtx);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user