aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/loadcmdline.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/public/loadcmdline.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/public/loadcmdline.h')
-rw-r--r--sp/src/public/loadcmdline.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/sp/src/public/loadcmdline.h b/sp/src/public/loadcmdline.h
new file mode 100644
index 00000000..491431b5
--- /dev/null
+++ b/sp/src/public/loadcmdline.h
@@ -0,0 +1,27 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: loads additional command line options from a config file
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef LOADCMDLINE_H
+#define LOADCMDLINE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//-----------------------------------------------------------------------------
+// Purpose: Loads additional commandline arguments from a config file for an app.
+// keyname: Name of the block containing the key/args pairs (ie map or model name)
+// appname: Keyname for the commandline arguments to be loaded - typically the exe name.
+//-----------------------------------------------------------------------------
+void LoadCmdLineFromFile( int &argc, char **&argv, const char *keyname, const char *appname );
+
+//-----------------------------------------------------------------------------
+// Purpose: Cleans up any memory allocated for the new argv. Pass in the app's
+// argc and argv - this is safe even if no extra arguments were loaded.
+//-----------------------------------------------------------------------------
+void DeleteCmdLine( int argc, char **argv );
+
+#endif // LOADCMDLINE_H \ No newline at end of file