Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8112 → Rev 8111

/source/voidwrap/include/voidwrap_steam.h
15,7 → 15,6
 
VOIDWRAP_API void Voidwrap_Steam_UnlockAchievement(char const * id);
VOIDWRAP_API void Voidwrap_Steam_SetStat(char const * id, int32_t value);
VOIDWRAP_API void Voidwrap_Steam_ResetStats(void);
 
#ifdef VWDEBUG
VOIDWRAP_API void Voidwrap_Steam_SetCallback_PrintDebug(VW_VOID_CONSTCHARPTR function);
42,9 → 41,8
static VW_BOOL Voidwrap_Steam_Init;
static VW_VOID Voidwrap_Steam_Shutdown;
static VW_VOID Voidwrap_Steam_RunCallbacks;
static VW_VOID Voidwrap_Steam_ResetStats;
 
static VW_VOID_CONSTCHARPTR Voidwrap_Steam_UnlockAchievement;
static VW_VOID_CONSTCHARPTR Voidwrap_Steam_UnlockAchievement;
static VW_VOID_CONSTCHARPTR_INT32 Voidwrap_Steam_SetStat;
 
#ifdef VWDEBUG
/source/voidwrap/src/voidwrap_steam.cpp
56,7 → 56,6
 
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);
92,16 → 91,6
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)
178,14 → 167,7
StatsAndAchievementsHandler->SetStat(id, value);
}
 
VOIDWRAP_API void Voidwrap_Steam_ResetStats()
{
if (nullptr == StatsAndAchievementsHandler)
return;
 
StatsAndAchievementsHandler->ResetStats();
}
 
#ifdef VWSCREENSHOT
class SteamScreenshotHandler
{