mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
TROPUSR: add GetUnlockedTrophiesCount()
This commit is contained in:
parent
67391322f4
commit
4e5cceb03e
2 changed files with 14 additions and 0 deletions
|
@ -202,6 +202,19 @@ u32 TROPUSRLoader::GetTrophiesCount()
|
||||||
return (u32)m_table6.size();
|
return (u32)m_table6.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u32 TROPUSRLoader::GetUnlockedTrophiesCount()
|
||||||
|
{
|
||||||
|
u32 count = 0;
|
||||||
|
for (const auto& trophy : m_table6)
|
||||||
|
{
|
||||||
|
if (trophy.trophy_state)
|
||||||
|
{
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
u32 TROPUSRLoader::GetTrophyUnlockState(u32 id)
|
u32 TROPUSRLoader::GetTrophyUnlockState(u32 id)
|
||||||
{
|
{
|
||||||
if (id >= m_table6.size())
|
if (id >= m_table6.size())
|
||||||
|
|
|
@ -73,6 +73,7 @@ public:
|
||||||
virtual bool Save(const std::string& filepath);
|
virtual bool Save(const std::string& filepath);
|
||||||
|
|
||||||
virtual u32 GetTrophiesCount();
|
virtual u32 GetTrophiesCount();
|
||||||
|
virtual u32 GetUnlockedTrophiesCount();
|
||||||
|
|
||||||
virtual u32 GetTrophyUnlockState(u32 id);
|
virtual u32 GetTrophyUnlockState(u32 id);
|
||||||
virtual u64 GetTrophyTimestamp(u32 id);
|
virtual u64 GetTrophyTimestamp(u32 id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue