void CSteamGameServerRecordingWrapper::SetHeartbeatInterval(int iHeartbeatInterval) { CGameServerSetHeartbeatIntervalCall fcall(iHeartbeatInterval); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SetHeartbeatInterval(iHeartbeatInterval); m_Recorder->PopFunc(&frec); }
void CRecordingEngExtInterceptor::srand(uint32 seed) { CStdSrandCall fcall(seed); CRecorderFuncCall frec(&fcall); PushFunc(&frec); m_BasePlatform->srand(seed); PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::SendUserDisconnect(CSteamID steamIDUser) { CGameServerSendUserDisconnectCall fcall(steamIDUser); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SendUserDisconnect(steamIDUser); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::EnableHeartbeats(bool bActive) { CGameServerEnableHeartbeatsCall fcall(bActive); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->EnableHeartbeats(bActive); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::ClearAllKeyValues() { CGameServerClearAllKVsCall fcall; CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->ClearAllKeyValues(); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::SetKeyValue(const char *pKey, const char *pValue) { CGameServerSetKeyValueCall fcall(pKey, pValue); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SetKeyValue(pKey, pValue); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::SetMapName(const char *pszMapName) { CGameServerSetMapNameCall fcall(pszMapName); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SetMapName(pszMapName); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::SetPasswordProtected(bool bPasswordProtected) { CGameServerSetPasswordProtectedCall fcall(bPasswordProtected); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SetPasswordProtected(bPasswordProtected); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::SetMaxPlayerCount(int cPlayersMax) { CGameServerSetMaxPlayersCall fcall(cPlayersMax); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SetMaxPlayerCount(cPlayersMax); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::SetBotPlayerCount(int cBotplayers) { CGameServerSetBotCountCall fcall(cBotplayers); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SetBotPlayerCount(cBotplayers); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::LogOff() { CGameServerLogOffCall fcall; CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->LogOff(); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::SetDedicatedServer(bool bDedicated) { CGameServerSetDedicatedServerCall fcall(bDedicated); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SetDedicatedServer(bDedicated); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::SetGameDescription(const char *pszGameDescription) { CGameServerSetGameDescCall fcall(pszGameDescription); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SetGameDescription(pszGameDescription); m_Recorder->PopFunc(&frec); }
void CSteamGameServerRecordingWrapper::SetProduct(const char *pszProduct) { CGameServerSetProductCall fcall(pszProduct); CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); m_Wrapped->SetProduct(pszProduct); m_Recorder->PopFunc(&frec); }
void CRecordingEngExtInterceptor::Sleep(DWORD msec) { CSleepExtCall fcall(msec); CRecorderFuncCall frec(&fcall); PushFunc(&frec); m_BasePlatform->Sleep(msec); PopFunc(&frec); }
const std::function<U(T)>& rec (std::function<U(std::function<U(T)>, T)> frec){ std::function<U(T)>* g = new std::function<U(T)>; *g = [frec, g](T n){ return frec(*g, n); }; return *g; }
void CRecordingEngExtInterceptor::SteamAPI_SetBreakpadAppID(uint32 unAppID) { CSteamApiSetBreakpadAppIdCall fcall(unAppID); CRecorderFuncCall frec(&fcall); PushFunc(&frec); m_BasePlatform->SteamAPI_SetBreakpadAppID(unAppID); PopFunc(&frec); }
void CRecordingEngExtInterceptor::SteamAPI_RunCallbacks() { CSteamApiRunCallbacksCall fcall; CRecorderFuncCall frec(&fcall); PushFunc(&frec); m_BasePlatform->SteamAPI_RunCallbacks(); PopFunc(&frec); }
void CRecordingEngExtInterceptor::SteamGameServer_Shutdown() { CSteamGameServerShutdownCall fcall; CRecorderFuncCall frec(&fcall); PushFunc(&frec); m_BasePlatform->SteamGameServer_Shutdown(); m_GameServerWrapper = NULL; PopFunc(&frec); }
void CRecordingEngExtInterceptor::GetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime) { CGetSystemTimeAsFileTimeCall fcall; CRecorderFuncCall frec(&fcall); PushFunc(&frec); m_BasePlatform->GetSystemTimeAsFileTime(lpSystemTimeAsFileTime); fcall.setResult(lpSystemTimeAsFileTime); PopFunc(&frec); }
void CRecordingEngExtInterceptor::GetTimeZoneInfo(LPTIME_ZONE_INFORMATION zinfo) { CGetTimeZoneInfoCall fcall; CRecorderFuncCall frec(&fcall); PushFunc(&frec); m_BasePlatform->GetTimeZoneInfo(zinfo); fcall.SetResult(zinfo); PopFunc(&frec); }
void CRecordingEngExtInterceptor::GetSystemTime(LPSYSTEMTIME time) { CGetSystemTimeCall fcall; CRecorderFuncCall frec(&fcall); PushFunc(&frec); m_BasePlatform->GetSystemTime(time); fcall.SetResult(time); PopFunc(&frec); }
bool CRecordingEngExtInterceptor::SteamAPI_Init() { CSteamApiInitCall fcall; CRecorderFuncCall frec(&fcall); PushFunc(&frec); bool res = m_BasePlatform->SteamAPI_Init(); fcall.setResult(res); PopFunc(&frec); return res; }
const char* CSteamAppsRecordingWrapper::GetCurrentGameLanguage() { CSteamAppGetCurrentGameLanguageCall fcall; CRecorderFuncCall frec(&fcall); m_Recorder->PushFunc(&frec); const char* res = m_Wrapped->GetCurrentGameLanguage(); fcall.setResult(res); m_Recorder->PopFunc(&frec); return res; }
int CRecordingEngExtInterceptor::gethostname(char *name, int namelen) { CGetHostNameCall fcall(namelen); CRecorderFuncCall frec(&fcall); PushFunc(&frec); int res = m_BasePlatform->gethostname(name, namelen); fcall.setResult(name, res); PopFunc(&frec); return res; }
struct hostent* CRecordingEngExtInterceptor::gethostbyname(const char *name) { CGetHostByNameCall fcall(name); CRecorderFuncCall frec(&fcall); PushFunc(&frec); struct hostent* res = m_BasePlatform->gethostbyname(name); fcall.setResult(res); PopFunc(&frec); return res; }
int CRecordingEngExtInterceptor::WSAGetLastError() { CWSAGetLastErrorCall fcall; CRecorderFuncCall frec(&fcall); PushFunc(&frec); int res = m_BasePlatform->WSAGetLastError(); fcall.setResult(res); PopFunc(&frec); return res; }
int CRecordingEngExtInterceptor::getsockname(SOCKET s, struct sockaddr* name, socklen_t* namelen) { CGetSockNameCall fcall(s, *namelen); CRecorderFuncCall frec(&fcall); PushFunc(&frec); int res = m_BasePlatform->getsockname(s, name, namelen); fcall.setResult(name, *namelen, res); PopFunc(&frec); return res; }
int CRecordingEngExtInterceptor::bind(SOCKET s, const struct sockaddr* addr, int namelen) { CBindCall fcall(s, addr, namelen); CRecorderFuncCall frec(&fcall); PushFunc(&frec); int res = m_BasePlatform->bind(s, addr, namelen); fcall.setResult(res); PopFunc(&frec); return res; }
int CRecordingEngExtInterceptor::sendto(SOCKET s, const char* buf, int len, int flags, const struct sockaddr* to, int tolen) { CSendToCall fcall(s, buf, len, flags, to, tolen); CRecorderFuncCall frec(&fcall); PushFunc(&frec); int res = m_BasePlatform->sendto(s, buf, len, flags, to, tolen); fcall.setResult(res); PopFunc(&frec); return res; }