mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Qt: multithreaded trophy icon refresh
This commit is contained in:
parent
4e6b37ca04
commit
20331a77ce
4 changed files with 132 additions and 58 deletions
|
|
@ -204,12 +204,12 @@ bool TROPUSRLoader::Generate(const std::string& filepath, const std::string& con
|
|||
return Save(filepath);
|
||||
}
|
||||
|
||||
u32 TROPUSRLoader::GetTrophiesCount()
|
||||
u32 TROPUSRLoader::GetTrophiesCount() const
|
||||
{
|
||||
return ::size32(m_table6);
|
||||
}
|
||||
|
||||
u32 TROPUSRLoader::GetUnlockedTrophiesCount()
|
||||
u32 TROPUSRLoader::GetUnlockedTrophiesCount() const
|
||||
{
|
||||
u32 count = 0;
|
||||
for (const auto& trophy : m_table6)
|
||||
|
|
@ -296,7 +296,7 @@ u32 TROPUSRLoader::GetUnlockedPlatinumID(u32 trophy_id, const std::string& confi
|
|||
return pid;
|
||||
}
|
||||
|
||||
u32 TROPUSRLoader::GetTrophyGrade(u32 id)
|
||||
u32 TROPUSRLoader::GetTrophyGrade(u32 id) const
|
||||
{
|
||||
if (id >= m_table4.size())
|
||||
{
|
||||
|
|
@ -307,7 +307,7 @@ u32 TROPUSRLoader::GetTrophyGrade(u32 id)
|
|||
return m_table4[id].trophy_grade; // Let's assume the trophies are stored ordered
|
||||
}
|
||||
|
||||
u32 TROPUSRLoader::GetTrophyUnlockState(u32 id)
|
||||
u32 TROPUSRLoader::GetTrophyUnlockState(u32 id) const
|
||||
{
|
||||
if (id >= m_table6.size())
|
||||
{
|
||||
|
|
@ -318,7 +318,7 @@ u32 TROPUSRLoader::GetTrophyUnlockState(u32 id)
|
|||
return m_table6[id].trophy_state; // Let's assume the trophies are stored ordered
|
||||
}
|
||||
|
||||
u64 TROPUSRLoader::GetTrophyTimestamp(u32 id)
|
||||
u64 TROPUSRLoader::GetTrophyTimestamp(u32 id) const
|
||||
{
|
||||
if (id >= m_table6.size())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue