diff --git a/stub_steam/steam_api.cpp b/stub_steam/steam_api.cpp new file mode 100644 index 00000000..d658d741 --- /dev/null +++ b/stub_steam/steam_api.cpp @@ -0,0 +1,185 @@ +#define _CRT_SECURE_NO_WARNINGS +#define STEAM_API_EXPORTS + +#if defined __GNUC__ + #define S_API extern "C" __attribute__ ((visibility("default"))) +#elif defined _MSC_VER +#define S_API extern "C" __declspec(dllexport) +#endif +#define NULL 0 + +S_API void *g_pSteamClientGameServer; +void *g_pSteamClientGameServer = NULL; + +//steam_api.h +S_API bool SteamAPI_Init() { + return true; +} + +S_API bool SteamAPI_InitSafe() { + return true; +} + +S_API void SteamAPI_Shutdown() { + +} + +S_API bool SteamAPI_RestartAppIfNecessary() { + return false; +} + +S_API void SteamAPI_ReleaseCurrentThreadMemory() { + +} + +S_API void SteamAPI_WriteMiniDump() { + +} + +S_API void SteamAPI_SetMiniDumpComment() { + +} + +S_API void SteamAPI_RunCallbacks() { +} + +S_API void SteamAPI_RegisterCallback() { + +} + +S_API void SteamAPI_UnregisterCallback() { + +} + +S_API void SteamAPI_RegisterCallResult() { + +} + +S_API void SteamAPI_UnregisterCallResult() { + +} + +S_API bool SteamAPI_IsSteamRunning() { + return false; +} + +S_API void Steam_RunCallbacks() { + +} + +S_API void Steam_RegisterInterfaceFuncs() { +} + +S_API int Steam_GetHSteamUserCurrent() { + return 0; +} + +S_API const char *SteamAPI_GetSteamInstallPath() { + return NULL; +} + +S_API int SteamAPI_GetHSteamPipe() { + return 0; +} + +S_API void SteamAPI_SetTryCatchCallbacks() { + +} + +S_API void SteamAPI_SetBreakpadAppID() { + +} + +S_API void SteamAPI_UseBreakpadCrashHandler() { + +} + +S_API int GetHSteamPipe() { + return 0; +} + +S_API int GetHSteamUser() { + return 0; +} + +S_API int SteamAPI_GetHSteamUser() { + return 0; +} + +S_API void *SteamInternal_ContextInit() { + return NULL; +} + +S_API void *SteamInternal_CreateInterface() { + return NULL; +} + +S_API void *SteamApps() { + return NULL; +} + +S_API void *SteamClient() { + return NULL; +} + +S_API void *SteamFriends() { + return NULL; +} + +S_API void *SteamHTTP() { + return NULL; +} + +S_API void *SteamMatchmaking() { + return NULL; +} + +S_API void *SteamMatchmakingServers() { + return NULL; +} + +S_API void *SteamNetworking() { + return NULL; +} + +S_API void *SteamRemoteStorage() { + return NULL; +} + +S_API void *SteamScreenshots() { + return NULL; +} + +S_API void *SteamUser() { + return NULL; +} + +S_API void *SteamUserStats() { + return NULL; +} + +S_API void *SteamUtils() { + return NULL; +} + +S_API int SteamGameServer_GetHSteamPipe() { + return 0; +} + +S_API int SteamGameServer_GetHSteamUser() { + return 0; +} + +S_API int SteamGameServer_GetIPCCallCount() { + return 0; +} + +S_API int SteamGameServer_InitSafe() { + return 0; +} + +S_API void SteamGameServer_RunCallbacks() { +} + +S_API void SteamGameServer_Shutdown() { +} diff --git a/stub_steam/wscript b/stub_steam/wscript new file mode 100755 index 00000000..9da87661 --- /dev/null +++ b/stub_steam/wscript @@ -0,0 +1,44 @@ +#! /usr/bin/env python +# encoding: utf-8 + +from waflib import Utils +import os + +top = '.' +PROJECT_NAME = 'steam_api' + +def options(opt): + # stub + return + +def configure(conf): + return + +def build(bld): + source = [ + 'steam_api.cpp' + ] + + includes = [ + '.', + '../public', + '../public/tier0', + ] + bld.env.INCLUDES_SDL2 + + defines = [] + + libs = [] + + bld.shlib( + source = source, + target = PROJECT_NAME, + name = PROJECT_NAME, + features = 'c cxx', + includes = includes, + defines = defines, + install_path = bld.env.LIBDIR, + use = libs, + subsystem = bld.env.MSVC_SUBSYSTEM, + idx = bld.get_taskgen_count() + ) + diff --git a/thirdparty b/thirdparty index aac07c72..c5b901ec 160000 --- a/thirdparty +++ b/thirdparty @@ -1 +1 @@ -Subproject commit aac07c72058aea6267ea60b70a25602b41469d28 +Subproject commit c5b901ecef515ea068fa8b8a19ca5cd5353905cb