Allow "hidden" achievement property to be an int in the json config.

This commit is contained in:
Mr_Goldberg 2021-03-07 19:03:24 -05:00
parent 992e5c3faa
commit 8785ae568c
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ Steam_User_Stats(Settings *settings, Local_Storage *local_storage, class SteamCa
user_achievements[name]["earned_time"] = static_cast<uint32>(0);
}
} catch (...) {}
try {
it["hidden"] = std::to_string(it["hidden"].get<int>());
} catch (...) {}
}
}