Misc NP fixes

This commit is contained in:
RipleyTom 2024-01-10 16:46:02 +01:00 committed by Megamouse
parent f7fa5aab70
commit 4c36b80300
6 changed files with 33 additions and 6 deletions

View file

@ -79,6 +79,11 @@ namespace rpcn
return get_localized_string(rpcn_state_to_localized_string_id(state));
}
void friend_online_data::dump() const
{
rpcn_log.notice("online: %s, pr_com_id: %s, pr_title: %s, pr_status: %s, pr_comment: %s, pr_data: %s", online ? "true" : "false", pr_com_id.data, pr_title, pr_status, pr_comment, fmt::buf_to_hexstring(pr_data.data(), pr_data.size()));
}
constexpr u32 RPCN_PROTOCOL_VERSION = 21;
constexpr usz RPCN_HEADER_SIZE = 15;