From 74ffdca614487c3ddb13f6bdacd1dd87413c9e54 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 7 Oct 2022 00:09:18 +1000 Subject: [PATCH] Achievements: Save submitted time from API in leaderboards --- pcsx2/Frontend/Achievements.cpp | 1 + pcsx2/Frontend/Achievements.h | 1 + 2 files changed, 2 insertions(+) diff --git a/pcsx2/Frontend/Achievements.cpp b/pcsx2/Frontend/Achievements.cpp index 7328082362..23b887e6de 100644 --- a/pcsx2/Frontend/Achievements.cpp +++ b/pcsx2/Frontend/Achievements.cpp @@ -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)); diff --git a/pcsx2/Frontend/Achievements.h b/pcsx2/Frontend/Achievements.h index 116eefeb24..4969bdf266 100644 --- a/pcsx2/Frontend/Achievements.h +++ b/pcsx2/Frontend/Achievements.h @@ -65,6 +65,7 @@ namespace Achievements { std::string user; std::string formatted_score; + time_t submitted; u32 rank; bool is_self; };