diff --git a/steam/src/steam_apps.cpp b/steam/src/steam_apps.cpp index 3cbc690..31eb797 100644 --- a/steam/src/steam_apps.cpp +++ b/steam/src/steam_apps.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamApps* g_SteamApps; +static ISteamApps* g_SteamApps = 0; int SteamApps_Init(lua_State* L) { @@ -19,9 +19,9 @@ int SteamApps_Init(lua_State* L) */ int SteamApps_IsDlcInstalled(lua_State* L) { + if (!g_SteamApps) return 0; DM_LUA_STACK_CHECK(L, 1); AppId_t appID = luaL_checknumber(L, 1); - dmLogInfo("SteamApps_IsDlcInstalled %d", appID); bool installed = g_SteamApps->BIsDlcInstalled(appID); lua_pushboolean(L, installed); return 1; diff --git a/steam/src/steam_friends.cpp b/steam/src/steam_friends.cpp index bf231b7..18a0e12 100644 --- a/steam/src/steam_friends.cpp +++ b/steam/src/steam_friends.cpp @@ -8,7 +8,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamFriends* g_SteamFriends; +static ISteamFriends* g_SteamFriends = 0; int SteamFriends_Init(lua_State* L) { @@ -27,6 +27,7 @@ int SteamFriends_Init(lua_State* L) */ int SteamFriends_GetFriendPersonaName(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 1); CSteamID steamIDFriend = check_uint64(L, 1); const char* name = g_SteamFriends->GetFriendPersonaName(steamIDFriend); @@ -43,6 +44,7 @@ int SteamFriends_GetFriendPersonaName(lua_State* L) */ int SteamFriends_GetPersonaName(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 1); const char* name = g_SteamFriends->GetPersonaName(); lua_pushstring(L, name); @@ -56,6 +58,7 @@ int SteamFriends_GetPersonaName(lua_State* L) */ int SteamFriends_GetPersonaState(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 1); EPersonaState e = g_SteamFriends->GetPersonaState(); lua_pushnumber(L, e); @@ -74,6 +77,7 @@ int SteamFriends_GetPersonaState(lua_State* L) */ int SteamFriends_GetFriendCount(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 1); int iFriendFlags = luaL_checknumber(L, 1); int count = g_SteamFriends->GetFriendCount(iFriendFlags); @@ -92,6 +96,7 @@ int SteamFriends_GetPersonaState(lua_State* L) */ int SteamFriends_GetFriendByIndex(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 1); int iFriend = luaL_checknumber(L, 1); int iFriendFlags = luaL_checknumber(L, 2); @@ -111,6 +116,7 @@ int SteamFriends_GetFriendByIndex(lua_State* L) */ int SteamFriends_GetFriendPersonaState(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 1); CSteamID steamIDFriend = check_uint64(L, 1); EPersonaState state = g_SteamFriends->GetFriendPersonaState(steamIDFriend); @@ -126,6 +132,7 @@ int SteamFriends_GetFriendPersonaState(lua_State* L) */ int SteamFriends_GetFriendSteamLevel(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 1); CSteamID steamIDFriend = check_uint64(L, 1); int level = g_SteamFriends->GetFriendSteamLevel(steamIDFriend); @@ -141,6 +148,7 @@ int SteamFriends_GetFriendSteamLevel(lua_State* L) */ int SteamFriends_GetFriendRelationship(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 1); CSteamID steamIDFriend = check_uint64(L, 1); EFriendRelationship relationship = g_SteamFriends->GetFriendRelationship(steamIDFriend); @@ -157,6 +165,7 @@ int SteamFriends_GetFriendRelationship(lua_State* L) */ int SteamFriends_GetSmallFriendAvatar(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 1); CSteamID steamIDFriend = check_uint64(L, 1); int handle = g_SteamFriends->GetSmallFriendAvatar(steamIDFriend); @@ -172,6 +181,7 @@ int SteamFriends_GetSmallFriendAvatar(lua_State* L) */ int SteamFriends_ActivateGameOverlayToStore(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 0); AppId_t nAppID = luaL_checknumber(L, 1); EOverlayToStoreFlag eFlag; @@ -194,6 +204,7 @@ int SteamFriends_ActivateGameOverlayToStore(lua_State* L) */ int SteamFriends_ActivateGameOverlayToWebPage(lua_State* L) { + if (!g_SteamFriends) return 0; DM_LUA_STACK_CHECK(L, 0); const char *pchURL = luaL_checkstring(L, 1); EActivateGameOverlayToWebPageMode eMode; diff --git a/steam/src/steam_game_search.cpp b/steam/src/steam_game_search.cpp index 4c598a5..259461a 100644 --- a/steam/src/steam_game_search.cpp +++ b/steam/src/steam_game_search.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamGameSearch* g_SteamGameSearch; +static ISteamGameSearch* g_SteamGameSearch = 0; int SteamGameSearch_Init(lua_State* L) { diff --git a/steam/src/steam_input.cpp b/steam/src/steam_input.cpp index 77006b3..e826d2d 100644 --- a/steam/src/steam_input.cpp +++ b/steam/src/steam_input.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamInput* g_SteamInput; +static ISteamInput* g_SteamInput = 0; int SteamInput_Init(lua_State* L) { diff --git a/steam/src/steam_inventory.cpp b/steam/src/steam_inventory.cpp index 9820b49..2feb6e2 100644 --- a/steam/src/steam_inventory.cpp +++ b/steam/src/steam_inventory.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamInventory* g_SteamInventory; +static ISteamInventory* g_SteamInventory = 0; int SteamInventory_Init(lua_State* L) { diff --git a/steam/src/steam_listener.cpp b/steam/src/steam_listener.cpp index d70429d..12de4ff 100644 --- a/steam/src/steam_listener.cpp +++ b/steam/src/steam_listener.cpp @@ -5,7 +5,7 @@ #include "steam_types.h" -static dmScript::LuaCallbackInfo* g_SteamListener; +static dmScript::LuaCallbackInfo* g_SteamListener = 0; void SteamListener_Invoke(int (*fn)(lua_State*, void*), void* data) { diff --git a/steam/src/steam_matchmaking.cpp b/steam/src/steam_matchmaking.cpp index fdf1450..f40b47d 100644 --- a/steam/src/steam_matchmaking.cpp +++ b/steam/src/steam_matchmaking.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamMatchmaking* g_SteamMatchmaking; +static ISteamMatchmaking* g_SteamMatchmaking = 0; int SteamMatchmaking_Init(lua_State* L) { diff --git a/steam/src/steam_music.cpp b/steam/src/steam_music.cpp index bdf09db..0f3d03c 100644 --- a/steam/src/steam_music.cpp +++ b/steam/src/steam_music.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamMusic* g_SteamMusic; +static ISteamMusic* g_SteamMusic = 0; int SteamMusic_Init(lua_State* L) { diff --git a/steam/src/steam_musicremote.cpp b/steam/src/steam_musicremote.cpp index 4f46f80..ea9c38a 100644 --- a/steam/src/steam_musicremote.cpp +++ b/steam/src/steam_musicremote.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamMusicRemote* g_SteamMusicRemote; +static ISteamMusicRemote* g_SteamMusicRemote = 0; int SteamMusicRemote_Init(lua_State* L) { diff --git a/steam/src/steam_networking.cpp b/steam/src/steam_networking.cpp index ef7c10a..98e009b 100644 --- a/steam/src/steam_networking.cpp +++ b/steam/src/steam_networking.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamNetworking* g_SteamNetworking; +static ISteamNetworking* g_SteamNetworking = 0; int SteamNetworking_Init(lua_State* L) { diff --git a/steam/src/steam_parties.cpp b/steam/src/steam_parties.cpp index 035036f..086cc28 100644 --- a/steam/src/steam_parties.cpp +++ b/steam/src/steam_parties.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamParties* g_SteamParties; +static ISteamParties* g_SteamParties = 0; int SteamParties_Init(lua_State* L) { diff --git a/steam/src/steam_remotestorage.cpp b/steam/src/steam_remotestorage.cpp index c4a2e3c..eab701d 100644 --- a/steam/src/steam_remotestorage.cpp +++ b/steam/src/steam_remotestorage.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamRemoteStorage* g_SteamRemoteStorage; +static ISteamRemoteStorage* g_SteamRemoteStorage = 0; int SteamRemoteStorage_Init(lua_State* L) { diff --git a/steam/src/steam_screenshots.cpp b/steam/src/steam_screenshots.cpp index f665351..14cb6d6 100644 --- a/steam/src/steam_screenshots.cpp +++ b/steam/src/steam_screenshots.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamScreenshots* g_SteamScreenshots; +static ISteamScreenshots* g_SteamScreenshots = 0; int SteamScreenshots_Init(lua_State* L) { diff --git a/steam/src/steam_ugc.cpp b/steam/src/steam_ugc.cpp index 8e96e27..2750e3b 100644 --- a/steam/src/steam_ugc.cpp +++ b/steam/src/steam_ugc.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamUGC* g_SteamUGC; +static ISteamUGC* g_SteamUGC = 0; int SteamUGC_Init(lua_State* L) { diff --git a/steam/src/steam_user.cpp b/steam/src/steam_user.cpp index 247ec43..e3d1296 100644 --- a/steam/src/steam_user.cpp +++ b/steam/src/steam_user.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamUser* g_SteamUser; +static ISteamUser* g_SteamUser = 0; int SteamUser_Init(lua_State* L) @@ -21,6 +21,7 @@ int SteamUser_Init(lua_State* L) */ int SteamUser_GetSteamId(lua_State* L) { + if (!g_SteamUser) return 0; DM_LUA_STACK_CHECK(L, 1); push_CSteamID(L, g_SteamUser->GetSteamID()); return 1; @@ -32,6 +33,7 @@ int SteamUser_GetSteamId(lua_State* L) */ int SteamUser_GetPlayerSteamLevel(lua_State* L) { + if (!g_SteamUser) return 0; DM_LUA_STACK_CHECK(L, 1); lua_pushnumber(L, g_SteamUser->GetPlayerSteamLevel()); return 1; @@ -47,6 +49,7 @@ int SteamUser_GetPlayerSteamLevel(lua_State* L) */ int SteamUser_GetGameBadgeLevel(lua_State* L) { + if (!g_SteamUser) return 0; DM_LUA_STACK_CHECK(L, 1); int series = luaL_checknumber(L, 1); bool foil = lua_toboolean(L, 2); @@ -61,6 +64,7 @@ int SteamUser_GetGameBadgeLevel(lua_State* L) */ int SteamUser_LoggedOn(lua_State* L) { + if (!g_SteamUser) return 0; DM_LUA_STACK_CHECK(L, 1); lua_pushboolean(L, g_SteamUser->BLoggedOn()); return 1; @@ -73,6 +77,7 @@ int SteamUser_LoggedOn(lua_State* L) */ int SteamUser_IsBehindNAT(lua_State* L) { + if (!g_SteamUser) return 0; DM_LUA_STACK_CHECK(L, 1); lua_pushboolean(L, g_SteamUser->BIsBehindNAT()); return 1; @@ -84,6 +89,7 @@ int SteamUser_IsBehindNAT(lua_State* L) */ int SteamUser_IsPhoneVerified(lua_State* L) { + if (!g_SteamUser) return 0; DM_LUA_STACK_CHECK(L, 1); lua_pushboolean(L, g_SteamUser->BIsPhoneVerified()); return 1; @@ -95,6 +101,7 @@ int SteamUser_IsPhoneVerified(lua_State* L) */ int SteamUser_IsPhoneIdentifying(lua_State* L) { + if (!g_SteamUser) return 0; DM_LUA_STACK_CHECK(L, 1); lua_pushboolean(L, g_SteamUser->BIsPhoneIdentifying()); return 1; @@ -106,6 +113,7 @@ int SteamUser_IsPhoneIdentifying(lua_State* L) */ int SteamUser_IsPhoneRequiringVerification(lua_State* L) { + if (!g_SteamUser) return 0; DM_LUA_STACK_CHECK(L, 1); lua_pushboolean(L, g_SteamUser->BIsPhoneRequiringVerification()); return 1; @@ -117,6 +125,7 @@ int SteamUser_IsPhoneRequiringVerification(lua_State* L) */ int SteamUser_IsTwoFactorEnabled(lua_State* L) { + if (!g_SteamUser) return 0; DM_LUA_STACK_CHECK(L, 1); lua_pushboolean(L, g_SteamUser->BIsTwoFactorEnabled()); return 1; diff --git a/steam/src/steam_userstats.cpp b/steam/src/steam_userstats.cpp index 635363a..6216124 100644 --- a/steam/src/steam_userstats.cpp +++ b/steam/src/steam_userstats.cpp @@ -118,7 +118,7 @@ void SteamUserStatsCallbacks::OnGlobalStatsReceived(GlobalStatsReceived_t *s) static SteamUserStatsCallbacks* g_SteamUserStatsCallbacks = new SteamUserStatsCallbacks(); -static ISteamUserStats* g_SteamUserStats; +static ISteamUserStats* g_SteamUserStats = 0; int SteamUserStats_Init(lua_State* L) { @@ -135,8 +135,8 @@ int SteamUserStats_Init(lua_State* L) */ int SteamUserStats_GetStatInt(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 2); - const char* id = luaL_checkstring(L, 1); int stat = 0; bool ok = g_SteamUserStats->GetStat(id, &stat); @@ -160,6 +160,7 @@ int SteamUserStats_GetStatInt(lua_State* L) */ int SteamUserStats_SetStatInt(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); const char* id = luaL_checkstring(L, 1); int stat = luaL_checknumber(L, 2); @@ -176,6 +177,7 @@ int SteamUserStats_SetStatInt(lua_State* L) */ int SteamUserStats_GetStatFloat(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 2); const char* id = luaL_checkstring(L, 1); float stat = 0; @@ -200,6 +202,7 @@ int SteamUserStats_GetStatFloat(lua_State* L) */ int SteamUserStats_SetStatFloat(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); const char* id = luaL_checkstring(L, 1); float stat = luaL_checknumber(L, 2); @@ -216,6 +219,7 @@ int SteamUserStats_SetStatFloat(lua_State* L) */ int SteamUserStats_RequestCurrentStats(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); bool ok = g_SteamUserStats->RequestCurrentStats(); lua_pushboolean(L, ok); @@ -232,6 +236,7 @@ int SteamUserStats_RequestCurrentStats(lua_State* L) */ int SteamUserStats_RequestGlobalStats(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); int historyDays = luaL_checknumber(L, 1); bool ok = g_SteamUserStats->RequestGlobalStats(historyDays); @@ -251,6 +256,7 @@ int SteamUserStats_RequestGlobalStats(lua_State* L) */ int SteamUserStats_StoreStats(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); bool ok = g_SteamUserStats->StoreStats(); lua_pushboolean(L, ok); @@ -264,6 +270,7 @@ int SteamUserStats_StoreStats(lua_State* L) */ int SteamUserStats_ResetAllStats(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); bool achievementsToo = lua_toboolean(L, 1); bool ok = g_SteamUserStats->ResetAllStats(achievementsToo); @@ -278,6 +285,7 @@ int SteamUserStats_ResetAllStats(lua_State* L) */ int SteamUserStats_SetAchievement(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); const char* name = luaL_checkstring(L, 1); bool ok = g_SteamUserStats->SetAchievement(name); @@ -293,6 +301,7 @@ int SteamUserStats_SetAchievement(lua_State* L) */ int SteamUserStats_GetAchievement(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 2); const char* name = luaL_checkstring(L, 1); bool achieved = 0; @@ -316,6 +325,7 @@ int SteamUserStats_GetAchievement(lua_State* L) */ int SteamUserStats_ClearAchievement(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); const char* name = luaL_checkstring(L, 1); bool ok = g_SteamUserStats->ClearAchievement(name); @@ -331,6 +341,7 @@ int SteamUserStats_ClearAchievement(lua_State* L) */ int SteamUserStats_GetNumAchievements(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); int num = g_SteamUserStats->GetNumAchievements(); lua_pushnumber(L, num); @@ -344,6 +355,7 @@ int SteamUserStats_GetNumAchievements(lua_State* L) */ int SteamUserStats_GetAchievementName(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); int index = luaL_checknumber(L, 1); const char* name = g_SteamUserStats->GetAchievementName(index); @@ -362,6 +374,7 @@ int SteamUserStats_GetAchievementName(lua_State* L) */ int SteamUserStats_GetAchievementDisplayAttribute(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); const char* name = luaL_checkstring(L, 1); const char* key = luaL_checkstring(L, 2); @@ -377,6 +390,7 @@ int SteamUserStats_GetAchievementDisplayAttribute(lua_State* L) */ int SteamUserStats_GetAchievementAchievedPercent(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 2); const char* name = luaL_checkstring(L, 1); float percent = 0; @@ -392,8 +406,16 @@ int SteamUserStats_GetAchievementAchievedPercent(lua_State* L) } return 2; } + +/** + * Find a leaderboard. + * Will return leaderboard asynchronously. + * @name user_stats_find_leaderboard + * @string name + */ int SteamUserStats_FindLeaderboard(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); const char* name = luaL_checkstring(L, 1); SteamAPICall_t call = g_SteamUserStats->FindLeaderboard(name); @@ -404,11 +426,13 @@ int SteamUserStats_FindLeaderboard(lua_State* L) /** * Get the name of a leaderboard. + * @name user_stats_get_leaderboard_name * @string leaderboard * @treturn string name */ int SteamUserStats_GetLeaderboardName(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); SteamLeaderboard_t leaderboard = check_uint64(L, 1); const char* name = g_SteamUserStats->GetLeaderboardName(leaderboard); @@ -436,6 +460,7 @@ int SteamUserStats_GetLeaderboardName(lua_State* L) */ int SteamUserStats_DownloadLeaderboardEntries(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 1); SteamLeaderboard_t leaderboard = check_uint64(L, 1); ELeaderboardDataRequest request = (ELeaderboardDataRequest)luaL_checkinteger(L, 2); @@ -456,6 +481,7 @@ int SteamUserStats_DownloadLeaderboardEntries(lua_State* L) */ int SteamUserStats_GetDownloadedLeaderboardEntry(lua_State* L) { + if (!g_SteamUserStats) return 0; DM_LUA_STACK_CHECK(L, 2); SteamLeaderboardEntries_t hSteamLeaderboardEntries = check_uint64(L, 1); diff --git a/steam/src/steam_utils.cpp b/steam/src/steam_utils.cpp index 02a807b..be62c7e 100644 --- a/steam/src/steam_utils.cpp +++ b/steam/src/steam_utils.cpp @@ -3,7 +3,7 @@ #include #include "steam_api.h" -static ISteamUtils* g_SteamUtils; +static ISteamUtils* g_SteamUtils = 0; extern "C" void __cdecl SteamAPIDebugTextHook(int nSeverity, const char *pchDebugText) { @@ -31,8 +31,8 @@ int SteamUtils_Init(lua_State* L) */ int SteamUtils_GetAppId(lua_State* L) { + if (!g_SteamUtils) return 0; DM_LUA_STACK_CHECK(L, 1); - lua_pushnumber(L, g_SteamUtils->GetAppID()); return 1; } @@ -43,6 +43,7 @@ int SteamUtils_GetAppId(lua_State* L) */ int SteamUtils_GetSecondsSinceAppActive(lua_State* L) { + if (!g_SteamUtils) return 0; DM_LUA_STACK_CHECK(L, 1); lua_pushnumber(L, g_SteamUtils->GetSecondsSinceAppActive()); @@ -55,6 +56,7 @@ int SteamUtils_GetSecondsSinceAppActive(lua_State* L) */ int SteamUtils_IsSteamRunningOnSteamDeck(lua_State* L) { + if (!g_SteamUtils) return 0; DM_LUA_STACK_CHECK(L, 1); lua_pushboolean(L, g_SteamUtils->IsSteamRunningOnSteamDeck()); @@ -71,6 +73,7 @@ int SteamUtils_IsSteamRunningOnSteamDeck(lua_State* L) */ int SteamUtils_GetImageSize(lua_State* L) { + if (!g_SteamUtils) return 0; DM_LUA_STACK_CHECK(L, 3); int iImage = luaL_checknumber(L, 1); @@ -101,6 +104,7 @@ int SteamUtils_GetImageSize(lua_State* L) */ int SteamUtils_GetImageRGBA(lua_State* L) { + if (!g_SteamUtils) return 0; DM_LUA_STACK_CHECK(L, 2); int iImage = luaL_checknumber(L, 1); int imageSize = luaL_checknumber(L, 2); diff --git a/steam/src/steam_video.cpp b/steam/src/steam_video.cpp index d235b58..d66ca83 100644 --- a/steam/src/steam_video.cpp +++ b/steam/src/steam_video.cpp @@ -4,7 +4,7 @@ #include "steam_api.h" #include "steam_types.h" -static ISteamVideo* g_SteamVideo; +static ISteamVideo* g_SteamVideo = 0; int SteamVideo_Init(lua_State* L) {