Subversion Repositories eduke32

Rev

Rev 8096 | Rev 8113 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8096 Rev 8112
Line 85... Line 85...
85
    Voidwrap_Steam_SetCallback_PrintDebug(steam_callback_printdebug);
85
    Voidwrap_Steam_SetCallback_PrintDebug(steam_callback_printdebug);
86
#endif
86
#endif
87
87
88
    Voidwrap_Steam_UnlockAchievement = (VW_VOID_CONSTCHARPTR)Voidwrap_GetSymbol(wrapper_handle, "Voidwrap_Steam_UnlockAchievement");
88
    Voidwrap_Steam_UnlockAchievement = (VW_VOID_CONSTCHARPTR)Voidwrap_GetSymbol(wrapper_handle, "Voidwrap_Steam_UnlockAchievement");
89
    Voidwrap_Steam_SetStat = (VW_VOID_CONSTCHARPTR_INT32)Voidwrap_GetSymbol(wrapper_handle, "Voidwrap_Steam_SetStat");
89
    Voidwrap_Steam_SetStat = (VW_VOID_CONSTCHARPTR_INT32)Voidwrap_GetSymbol(wrapper_handle, "Voidwrap_Steam_SetStat");
90
-
 
-
 
90
    Voidwrap_Steam_ResetStats = (VW_VOID)Voidwrap_GetSymbol(wrapper_handle, "Voidwrap_Steam_ResetStats");
91
#ifdef VWSCREENSHOT
91
#ifdef VWSCREENSHOT
92
    Voidwrap_Steam_SendScreenshot = (VW_BOOL_SCREENSHOT)Voidwrap_GetSymbol(wrapper_handle, "Voidwrap_Steam_SendScreenshot");
92
    Voidwrap_Steam_SendScreenshot = (VW_BOOL_SCREENSHOT)Voidwrap_GetSymbol(wrapper_handle, "Voidwrap_Steam_SendScreenshot");
93
    Voidwrap_Steam_SetCallback_ScreenshotRequested = (VW_SETCALLBACK_VOID)Voidwrap_GetSymbol(wrapper_handle, "Voidwrap_Steam_SetCallback_ScreenshotRequested");
93
    Voidwrap_Steam_SetCallback_ScreenshotRequested = (VW_SETCALLBACK_VOID)Voidwrap_GetSymbol(wrapper_handle, "Voidwrap_Steam_SetCallback_ScreenshotRequested");
94
    Voidwrap_Steam_SetCallback_ScreenshotRequested(steam_callback_screenshotrequested);
94
    Voidwrap_Steam_SetCallback_ScreenshotRequested(steam_callback_screenshotrequested);
95
#if 0
95
#if 0
Line 169... Line 169...
169
169
170
    Voidwrap_Steam_SetStat(id, value);
170
    Voidwrap_Steam_SetStat(id, value);
171
#endif
171
#endif
172
}
172
}
173
173
-
 
174
void communityapiResetStats()
-
 
175
{
-
 
176
#ifdef VW_ENABLED
-
 
177
    if (!steamworks_enabled)
-
 
178
        return;
-
 
179
-
 
180
    if (nullptr == Voidwrap_Steam_ResetStats)
-
 
181
        return;
-
 
182
-
 
183
    Voidwrap_Steam_ResetStats();
-
 
184
#endif
-
 
185
}
174
186
175
#ifdef VWSCREENSHOT
187
#ifdef VWSCREENSHOT
176
void communityapiSendScreenshot(char * filename)
188
void communityapiSendScreenshot(char * filename)
177
{
189
{
178
#ifdef VW_ENABLED
190
#ifdef VW_ENABLED