Achievements: Save submitted time from API in leaderboards

This commit is contained in:
Connor McLaughlin 2022-10-07 00:09:18 +10:00 committed by refractionpcsx2
parent 2ae3c6bf29
commit 74ffdca614
2 changed files with 2 additions and 0 deletions

View File

@ -1301,6 +1301,7 @@ void Achievements::GetLbInfoCallback(s32 status_code, const std::string& content
lbe.user = entry.username;
lbe.rank = entry.rank;
lbe.formatted_score = score;
lbe.submitted = entry.submitted;
lbe.is_self = lbe.user == s_username;
s_lboard_entries->push_back(std::move(lbe));

View File

@ -65,6 +65,7 @@ namespace Achievements
{
std::string user;
std::string formatted_score;
time_t submitted;
u32 rank;
bool is_self;
};