[User] Removed hardcode from XPROFILE_GAMERCARD_TITLES_PLAYED
(Now dashboard 9199 shows more reliable amount of games played)
This commit is contained in:
parent
65781c9329
commit
52904ce2f4
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue