mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-09 17:25:18 -06:00
clans: const correctness
This commit is contained in:
parent
3624dac22b
commit
37a125ddbd
@ -254,7 +254,7 @@ namespace np
|
|||||||
|
|
||||||
// Trim null characters
|
// Trim null characters
|
||||||
const auto& vec = node.data.data_vec;
|
const auto& vec = node.data.data_vec;
|
||||||
auto it = std::find(vec.begin(), vec.end(), 0);
|
const auto it = std::find(vec.begin(), vec.end(), 0);
|
||||||
return std::string(vec.begin(), it);
|
return std::string(vec.begin(), it);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1375,12 +1375,12 @@ namespace np
|
|||||||
return history;
|
return history;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 np_handler::get_clan_ticket_ready()
|
u32 np_handler::get_clan_ticket_ready() const
|
||||||
{
|
{
|
||||||
return clan_ticket_ready.load();
|
return clan_ticket_ready.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
ticket np_handler::get_clan_ticket()
|
ticket np_handler::get_clan_ticket() const
|
||||||
{
|
{
|
||||||
clan_ticket_ready.wait(0, atomic_wait_timeout{60'000'000'000}); // 60 seconds
|
clan_ticket_ready.wait(0, atomic_wait_timeout{60'000'000'000}); // 60 seconds
|
||||||
|
|
||||||
|
|||||||
@ -257,8 +257,8 @@ namespace np
|
|||||||
// Misc stuff
|
// Misc stuff
|
||||||
void req_ticket(u32 version, const SceNpId* npid, const char* service_id, const u8* cookie, u32 cookie_size, const char* entitlement_id, u32 consumed_count);
|
void req_ticket(u32 version, const SceNpId* npid, const char* service_id, const u8* cookie, u32 cookie_size, const char* entitlement_id, u32 consumed_count);
|
||||||
const ticket& get_ticket() const;
|
const ticket& get_ticket() const;
|
||||||
u32 get_clan_ticket_ready();
|
u32 get_clan_ticket_ready() const;
|
||||||
ticket get_clan_ticket();
|
ticket get_clan_ticket() const;
|
||||||
void add_player_to_history(const SceNpId* npid, const char* description);
|
void add_player_to_history(const SceNpId* npid, const char* description);
|
||||||
u32 add_players_to_history(const SceNpId* npids, const char* description, u32 count);
|
u32 add_players_to_history(const SceNpId* npids, const char* description, u32 count);
|
||||||
u32 get_players_history_count(u32 options);
|
u32 get_players_history_count(u32 options);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user