summaryrefslogtreecommitdiff
path: root/hammer/runcommands.h
diff options
context:
space:
mode:
Diffstat (limited to 'hammer/runcommands.h')
-rw-r--r--hammer/runcommands.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/hammer/runcommands.h b/hammer/runcommands.h
new file mode 100644
index 0000000..3eb6f82
--- /dev/null
+++ b/hammer/runcommands.h
@@ -0,0 +1,48 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef _RUNCOMMANDS_H
+#define _RUNCOMMANDS_H
+
+#include <afxtempl.h>
+
+//
+// RunCommands functions
+//
+
+enum
+{
+ CCChangeDir = 0x100,
+ CCCopyFile,
+ CCDelFile,
+ CCRenameFile
+};
+
+// command:
+typedef struct
+{
+ BOOL bEnable; // Run this command?
+
+ int iSpecialCmd; // Nonzero if special command exists
+ char szRun[MAX_PATH];
+ char szParms[MAX_PATH];
+ BOOL bLongFilenames; // Obsolete, but kept here for file backwards compatibility
+ BOOL bEnsureCheck;
+ char szEnsureFn[MAX_PATH];
+ BOOL bUseProcessWnd;
+ BOOL bNoWait;
+
+} CCOMMAND, *PCCOMMAND;
+
+// list of commands:
+typedef CArray<CCOMMAND, CCOMMAND&> CCommandArray;
+
+// run a list of commands:
+bool RunCommands(CCommandArray& Commands, LPCTSTR pszDocName);
+void FixGameVars(char *pszSrc, char *pszDst, BOOL bUseQuotes = TRUE);
+bool IsRunningCommands();
+
+#endif // _RUNCOMMANDS_H