[User] Removed hardcode from XPROFILE_GAMERCARD_TITLES_PLAYED

(Now dashboard 9199 shows more reliable amount of games played)
This commit is contained in:
Gliniak 2019-12-23 09:18:56 +01:00
parent ee72ed5a9f
commit 52ba854e4a
2 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,8 @@ UserProfile::UserProfile() : dash_gpd_(kDashboardID) {
// XPROFILE_GAMERCARD_MOTTO
AddSetting(std::make_unique<UnicodeSetting>(0x402C0011, L""));
// XPROFILE_GAMERCARD_TITLES_PLAYED
AddSetting(std::make_unique<Int32Setting>(0x10040012, 1));
AddSetting(
std::make_unique<Int32Setting>(0x10040012, GetAmountOfPlayedTitles()));
// XPROFILE_GAMERCARD_ACHIEVEMENTS_EARNED
AddSetting(std::make_unique<Int32Setting>(0x10040013, 0));
// XPROFILE_GAMER_DIFFICULTY

View File

@ -318,6 +318,7 @@ class UserProfile {
std::string name() const { return account_.GetGamertagString(); }
// uint32_t signin_state() const { return 1; }
uint32_t CalculateUserGamerscore() const;
uint32_t GetAmountOfPlayedTitles() const { return (uint32_t)title_gpds_.size(); }
void AddSetting(std::unique_ptr<Setting> setting);
Setting* GetSetting(uint32_t setting_id);