Achievements: Save submitted time from API in leaderboards

This commit is contained in:
Connor McLaughlin 2022-10-06 22:50:56 +10:00
parent 10f98106dd
commit bb4a65f1dd
2 changed files with 2 additions and 0 deletions

View file

@ -1270,6 +1270,7 @@ void Achievements::GetLbInfoCallback(s32 status_code, std::string content_type,
LeaderboardEntry lbe;
lbe.user = entry.username;
lbe.rank = entry.rank;
lbe.submitted = entry.submitted;
lbe.formatted_score = score;
lbe.is_self = lbe.user == s_username;

View file

@ -51,6 +51,7 @@ struct LeaderboardEntry
{
std::string user;
std::string formatted_score;
time_t submitted;
u32 rank;
bool is_self;
};