summaryrefslogtreecommitdiff
path: root/common/SteamAppStartup.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/SteamAppStartup.h')
-rw-r--r--common/SteamAppStartup.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/common/SteamAppStartup.h b/common/SteamAppStartup.h
new file mode 100644
index 0000000..24cf465
--- /dev/null
+++ b/common/SteamAppStartup.h
@@ -0,0 +1,25 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: used by all .exe's that run under steam and out,
+// so they can be launched indirectly by steam and launch steam themselves
+//
+//=============================================================================//
+
+#ifndef STEAMAPPSTARTUP_H
+#define STEAMAPPSTARTUP_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//-----------------------------------------------------------------------------
+// Purpose: Call this first thing at startup
+// Works out if the app is a steam app that is being ran outside of steam,
+// and if so, launches steam and tells it to run us as a steam app
+//
+// if it returns true, then exit
+// if it ruturns false, then continue with normal startup
+//-----------------------------------------------------------------------------
+bool ShouldLaunchAppViaSteam(const char *cmdLine, const char *steamFilesystemDllName, const char *stdioFilesystemDllName);
+
+
+#endif // STEAMAPPSTARTUP_H