Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8111 → Rev 8112

/source/voidwrap/src/voidwrap_steam.cpp
56,6 → 56,7
 
void SetAchievement(char const * id);
void SetStat(char const * id, int32_t value);
void ResetStats();
 
STEAM_CALLBACK(SteamStatsAndAchievementsHandler, OnUserStatsReceived, UserStatsReceived_t);
STEAM_CALLBACK(SteamStatsAndAchievementsHandler, OnUserStatsStored, UserStatsStored_t);
91,6 → 92,16
m_bStoreStats = true;
}
 
void SteamStatsAndAchievementsHandler::ResetStats()
{
if (nullptr == m_pSteamUserStats)
return;
 
m_pSteamUserStats->ResetAllStats(true);
 
m_bStoreStats = true;
}
 
void SteamStatsAndAchievementsHandler::OnUserStatsReceived(UserStatsReceived_t * pCallback)
{
if (nullptr == m_pSteamUserStats)
167,7 → 178,14
StatsAndAchievementsHandler->SetStat(id, value);
}
 
VOIDWRAP_API void Voidwrap_Steam_ResetStats()
{
if (nullptr == StatsAndAchievementsHandler)
return;
 
StatsAndAchievementsHandler->ResetStats();
}
 
#ifdef VWSCREENSHOT
class SteamScreenshotHandler
{