Team Fortress 2 Source Code as on 22/4/2020
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.

48 lines
1006 B

  1. //========= Copyright 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. };
  19. // command:
  20. typedef struct
  21. {
  22. BOOL bEnable; // Run this command?
  23. int iSpecialCmd; // Nonzero if special command exists
  24. char szRun[MAX_PATH];
  25. char szParms[MAX_PATH];
  26. BOOL bLongFilenames; // Obsolete, but kept here for file backwards compatibility
  27. BOOL bEnsureCheck;
  28. char szEnsureFn[MAX_PATH];
  29. BOOL bUseProcessWnd;
  30. BOOL bNoWait;
  31. } CCOMMAND, *PCCOMMAND;
  32. // list of commands:
  33. typedef CArray<CCOMMAND, CCOMMAND&> CCommandArray;
  34. // run a list of commands:
  35. bool RunCommands(CCommandArray& Commands, LPCTSTR pszDocName);
  36. void FixGameVars(char *pszSrc, char *pszDst, BOOL bUseQuotes = TRUE);
  37. bool IsRunningCommands();
  38. #endif // _RUNCOMMANDS_H