1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-08-09 08:55:35 +02:00

Implemented Steam_GameServer::BGetUserAchievementStatus

This commit is contained in:
NicknineTheEagle 2025-07-16 13:04:37 +03:00
parent f02de2cd85
commit f811613e87

View file

@ -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 // 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 ) bool Steam_GameServer::BGetUserAchievementStatus( CSteamID steamID, const char *pchAchievementName )
{ {
PRINT_DEBUG_ENTRY(); PRINT_DEBUG("%llu %s", steamID.ConvertToUint64(), pchAchievementName);
std::lock_guard<std::recursive_mutex> lock(global_mutex); std::lock_guard<std::recursive_mutex> 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. // New auth system APIs - do not mix with the old auth system APIs.