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.

49 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef _RUNCOMMANDS_H
  7. #define _RUNCOMMANDS_H
  8. #include <afxtempl.h>
  9. //
  10. // RunCommands functions
  11. //
  12. enum
  13. {
  14. CCChangeDir = 0x100,
  15. CCCopyFile,
  16. CCDelFile,
  17. CCRenameFile,
  18. CCGenerateGridNav,
  19. };
  20. // command:
  21. typedef struct
  22. {
  23. BOOL bEnable; // Run this command?
  24. int iSpecialCmd; // Nonzero if special command exists
  25. char szRun[MAX_PATH];
  26. char szParms[MAX_PATH];
  27. BOOL bLongFilenames; // Obsolete, but kept here for file backwards compatibility
  28. BOOL bEnsureCheck;
  29. char szEnsureFn[MAX_PATH];
  30. BOOL bUseProcessWnd; // Obsolete, but kept here for file backwards compatibility
  31. BOOL bNoWait;
  32. } CCOMMAND, *PCCOMMAND;
  33. // list of commands:
  34. typedef CArray<CCOMMAND, CCOMMAND&> CCommandArray;
  35. // run a list of commands:
  36. bool RunCommands(CCommandArray& Commands, LPCTSTR pszDocName, bool bWaitForKeypress);
  37. void FixGameVars(char *pszSrc, char *pszDst, BOOL bUseQuotes = TRUE);
  38. bool IsRunningCommands();
  39. #endif // _RUNCOMMANDS_H