blob: 3eb6f823e080da27ad147ee0bba5fe13c0ec461b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
|