mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 11:15:34 +08:00
implement the other overload of Steam_User_Stats::GetAchievementProgressLimits()
This commit is contained in:
parent
9ee40181b1
commit
05b6ccdcf8
@ -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.
|
// have been made, to show a progress notification to the user.
|
||||||
bool Steam_User_Stats::GetAchievementProgressLimits( const char *pchName, int32 *pnMinProgress, int32 *pnMaxProgress )
|
bool Steam_User_Stats::GetAchievementProgressLimits( const char *pchName, int32 *pnMinProgress, int32 *pnMaxProgress )
|
||||||
{
|
{
|
||||||
PRINT_DEBUG_TODO();
|
PRINT_DEBUG("'%s'", pchName);
|
||||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
return false;
|
|
||||||
|
float fMinProgress{};
|
||||||
|
float fMaxProgress{};
|
||||||
|
bool ret = GetAchievementProgressLimits(pchName, &fMinProgress, &fMaxProgress);
|
||||||
|
if (ret) {
|
||||||
|
if (pnMinProgress) *pnMinProgress = static_cast<int32>(fMinProgress);
|
||||||
|
if (pnMaxProgress) *pnMaxProgress = static_cast<int32>(fMaxProgress);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Steam_User_Stats::GetAchievementProgressLimits( const char *pchName, float *pfMinProgress, float *pfMaxProgress )
|
bool Steam_User_Stats::GetAchievementProgressLimits( const char *pchName, float *pfMinProgress, float *pfMaxProgress )
|
||||||
|
Loading…
Reference in New Issue
Block a user