From f811613e87aa0d9587c0f2d3b45b9187957fea46 Mon Sep 17 00:00:00 2001 From: NicknineTheEagle Date: Wed, 16 Jul 2025 13:04:37 +0300 Subject: [PATCH] Implemented Steam_GameServer::BGetUserAchievementStatus --- dll/steam_gameserver.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dll/steam_gameserver.cpp b/dll/steam_gameserver.cpp index 697be229..cc87d663 100644 --- a/dll/steam_gameserver.cpp +++ b/dll/steam_gameserver.cpp @@ -562,9 +562,15 @@ void Steam_GameServer::SetGameType( const char *pchGameType ) // Ask if a user has a specific achievement for this game, will get a callback on reply bool Steam_GameServer::BGetUserAchievementStatus( CSteamID steamID, const char *pchAchievementName ) { - PRINT_DEBUG_ENTRY(); + PRINT_DEBUG("%llu %s", steamID.ConvertToUint64(), pchAchievementName); std::lock_guard lock(global_mutex); - return false; + + GSClientAchievementStatus_t data = {}; + data.m_bUnlocked = true; + data.m_SteamID = steamID.ConvertToUint64(); + strncpy(data.m_pchAchievement, pchAchievementName, sizeof(data.m_pchAchievement) - 1); + callbacks->addCBResult(data.k_iCallback, &data, sizeof(data)); + return true; } // New auth system APIs - do not mix with the old auth system APIs.