-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nillerusr:master' into win32
- Loading branch information
Showing
9 changed files
with
241 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#! /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 = [] | ||
|
||
install_path = None if bld.env.BUILD_SDK else bld.env.LIBDIR | ||
|
||
bld.shlib( | ||
source = source, | ||
target = PROJECT_NAME, | ||
name = PROJECT_NAME, | ||
features = 'c cxx', | ||
includes = includes, | ||
defines = defines, | ||
install_path = install_path, | ||
use = libs, | ||
subsystem = bld.env.MSVC_SUBSYSTEM, | ||
idx = bld.get_taskgen_count() | ||
) | ||
|
Submodule thirdparty
updated
3 files
+0 −55 | StubSteamAPI/Makefile | |
+0 −185 | StubSteamAPI/steam_api.cpp | |
+0 −44 | StubSteamAPI/wscript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.