source-engine/thirdparty/FakeSteamAPI/FakeSteamAPI_Core.cpp

181 lines
2.4 KiB
C++
Raw Normal View History

2020-10-23 13:11:42 +00:00
#define _CRT_SECURE_NO_WARNINGS
#define STEAM_API_EXPORTS
2020-10-24 07:23:05 +00:00
#define S_API extern "C" __attribute__ ((visibility("default")))
#define NULL 0
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API void *g_pSteamClientGameServer;
void *g_pSteamClientGameServer = NULL;
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
//steam_api.h
S_API bool SteamAPI_Init() {
return true;
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API bool SteamAPI_InitSafe() {
return true;
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API void SteamAPI_Shutdown() {
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API bool SteamAPI_RestartAppIfNecessary() {
return false;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void SteamAPI_ReleaseCurrentThreadMemory() {
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API void SteamAPI_WriteMiniDump() {
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void SteamAPI_SetMiniDumpComment() {
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API void SteamAPI_RunCallbacks() {
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void SteamAPI_RegisterCallback() {
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void SteamAPI_UnregisterCallback() {
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void SteamAPI_RegisterCallResult() {
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void SteamAPI_UnregisterCallResult() {
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API bool SteamAPI_IsSteamRunning() {
return false;
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API void Steam_RunCallbacks() {
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API void Steam_RegisterInterfaceFuncs() {
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API int Steam_GetHSteamUserCurrent() {
return 0;
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API const char *SteamAPI_GetSteamInstallPath() {
return NULL;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API int SteamAPI_GetHSteamPipe() {
return 0;
}
S_API void SteamAPI_SetTryCatchCallbacks() {
2020-10-23 13:11:42 +00:00
}
2020-10-24 18:57:22 +00:00
S_API void SteamAPI_SetBreakpadAppID() {
}
S_API void SteamAPI_UseBreakpadCrashHandler() {
}
2020-10-24 07:23:05 +00:00
S_API int GetHSteamPipe() {
return 0;
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API int GetHSteamUser() {
return 0;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API int SteamAPI_GetHSteamUser() {
return 0;
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API void *SteamInternal_ContextInit() {
return NULL;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void *SteamInternal_CreateInterface() {
return NULL;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void *SteamApps() {
return NULL;
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API void *SteamClient() {
return NULL;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void *SteamFriends() {
return NULL;
}
2020-10-23 13:11:42 +00:00
2020-10-24 07:23:05 +00:00
S_API void *SteamHTTP() {
return NULL;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void *SteamMatchmaking() {
return NULL;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void *SteamMatchmakingServers() {
2020-10-23 13:11:42 +00:00
return NULL;
}
2020-10-24 07:23:05 +00:00
S_API void *SteamNetworking() {
return NULL;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void *SteamRemoteStorage() {
return NULL;
}
S_API void *SteamScreenshots() {
return NULL;
}
S_API void *SteamUser() {
return NULL;
}
2020-10-23 13:17:59 +00:00
2020-10-24 07:23:05 +00:00
S_API void *SteamUserStats() {
return NULL;
}
S_API void *SteamUtils() {
return NULL;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API int SteamGameServer_GetHSteamPipe() {
2020-10-23 13:17:59 +00:00
return 0;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API int SteamGameServer_GetHSteamUser() {
2020-10-23 13:17:59 +00:00
return 0;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API int SteamGameServer_GetIPCCallCount() {
2020-10-23 13:17:59 +00:00
return 0;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API int SteamGameServer_InitSafe() {
return 0;
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void SteamGameServer_RunCallbacks() {
2020-10-23 13:11:42 +00:00
}
2020-10-24 07:23:05 +00:00
S_API void SteamGameServer_Shutdown() {
}