Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: loads additional command line options from a config file
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef LOADCMDLINE_H
  8. #define LOADCMDLINE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. //-----------------------------------------------------------------------------
  13. // Purpose: Loads additional commandline arguments from a config file for an app.
  14. // keyname: Name of the block containing the key/args pairs (ie map or model name)
  15. // appname: Keyname for the commandline arguments to be loaded - typically the exe name.
  16. //-----------------------------------------------------------------------------
  17. void LoadCmdLineFromFile( int &argc, char **&argv, const char *keyname, const char *appname );
  18. //-----------------------------------------------------------------------------
  19. // Purpose: Cleans up any memory allocated for the new argv. Pass in the app's
  20. // argc and argv - this is safe even if no extra arguments were loaded.
  21. //-----------------------------------------------------------------------------
  22. void DeleteCmdLine( int argc, char **argv );
  23. #endif // LOADCMDLINE_H