From 05b6ccdcf867324a4b7a27f5ca6fd9582369d056 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Thu, 6 Jun 2024 21:07:50 +0300 Subject: [PATCH] implement the other overload of `Steam_User_Stats::GetAchievementProgressLimits()` --- dll/steam_user_stats.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dll/steam_user_stats.cpp b/dll/steam_user_stats.cpp index 2e8abd63..7da676a9 100644 --- a/dll/steam_user_stats.cpp +++ b/dll/steam_user_stats.cpp @@ -1855,9 +1855,17 @@ int32 Steam_User_Stats::GetGlobalStatHistory( const char *pchStatName, STEAM_ARR // have been made, to show a progress notification to the user. bool Steam_User_Stats::GetAchievementProgressLimits( const char *pchName, int32 *pnMinProgress, int32 *pnMaxProgress ) { - PRINT_DEBUG_TODO(); + PRINT_DEBUG("'%s'", pchName); std::lock_guard lock(global_mutex); - return false; + + float fMinProgress{}; + float fMaxProgress{}; + bool ret = GetAchievementProgressLimits(pchName, &fMinProgress, &fMaxProgress); + if (ret) { + if (pnMinProgress) *pnMinProgress = static_cast(fMinProgress); + if (pnMaxProgress) *pnMaxProgress = static_cast(fMaxProgress); + } + return ret; } bool Steam_User_Stats::GetAchievementProgressLimits( const char *pchName, float *pfMinProgress, float *pfMaxProgress )