Add Cheevos::GetAchievementProgressText

Measured achievements formatting is now up to rcheevos,
not DuckStation
This commit is contained in:
Silent
2022-01-07 16:44:45 +01:00
parent 9c91af6dfa
commit 9414f68f51
3 changed files with 12 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#include "common/string.h"
#include "core/types.h"
#include <functional>
#include <optional>
@@ -114,6 +115,7 @@ u32 GetLeaderboardCount();
bool IsLeaderboardTimeType(const Leaderboard& leaderboard);
std::pair<u32, u32> GetAchievementProgress(const Achievement& achievement);
TinyString GetAchievementProgressText(const Achievement& achievement);
void UnlockAchievement(u32 achievement_id, bool add_notification = true);
void SubmitLeaderboard(u32 leaderboard_id, int value);