-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathSteamAppStartup.h
25 lines (21 loc) · 1007 Bytes
/
SteamAppStartup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//========= Copyright © 1996-2005, 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