mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-30 03:25:39 +00:00
Achievements: Save submitted time from API in leaderboards
This commit is contained in:
parent
10f98106dd
commit
bb4a65f1dd
|
@ -1270,6 +1270,7 @@ void Achievements::GetLbInfoCallback(s32 status_code, std::string content_type,
|
||||||
LeaderboardEntry lbe;
|
LeaderboardEntry lbe;
|
||||||
lbe.user = entry.username;
|
lbe.user = entry.username;
|
||||||
lbe.rank = entry.rank;
|
lbe.rank = entry.rank;
|
||||||
|
lbe.submitted = entry.submitted;
|
||||||
lbe.formatted_score = score;
|
lbe.formatted_score = score;
|
||||||
lbe.is_self = lbe.user == s_username;
|
lbe.is_self = lbe.user == s_username;
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@ struct LeaderboardEntry
|
||||||
{
|
{
|
||||||
std::string user;
|
std::string user;
|
||||||
std::string formatted_score;
|
std::string formatted_score;
|
||||||
|
time_t submitted;
|
||||||
u32 rank;
|
u32 rank;
|
||||||
bool is_self;
|
bool is_self;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue