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

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); user_achievements[name]["earned_time"] = static_cast<uint32>(0);
} }
} catch (...) {} } catch (...) {}
try {
it["hidden"] = std::to_string(it["hidden"].get<int>());
} catch (...) {}
} }
} }