new build method
[vg.git] / src / vg / vg_steam.h
index b503d0bde228a7c8846a9abc1797fbe178093ec4..604dcdfa1d7f2a88adce79210c669d69b0eac8d1 100644 (file)
@@ -27,6 +27,14 @@ typedef int E_iCallBack_t;
 typedef u64    u64_steamid;
 typedef u64 SteamAPICall_t;
 
+typedef u32 AppId_t;
+const AppId_t k_uAppIdInvalid = 0x0;
+
+typedef u32 DepotId_t;
+const DepotId_t k_uDepotIdInvalid = 0x0;
+
+typedef u32 RTime32;
+
 enum { k_iSteamUserCallbacks = 100 };
 enum { k_iSteamGameServerCallbacks = 200 };
 enum { k_iSteamFriendsCallbacks = 300 };
@@ -576,4 +584,15 @@ static void steamworks_event_loop( HSteamPipe pipe,
        }
 }
 
+/*
+ * This is required to run the server outside of steamcmd environment.
+ * It can be any appid but idealy the one that is actually your game
+ */
+static void steamworks_ensure_txt( const char *appid_str )
+{
+   FILE *txt = fopen("steam_appid.txt", "w");
+   fputs( appid_str, txt );
+   fclose( txt );
+}
+
 #endif /* VG_STEAM_H */