mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-12 19:59:09 +00:00
1
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user