hl2_src-leak-2017/src/hammer/runcommands.h
BotoX 60f625f414 import hl2_src from full.7z
source: magnet:?xt=urn:btih:21DDA6847DDE983F2F8063739249D2D1D09A5DDA
2020-12-25 16:26:23 +01:00

49 lines
1006 B
C

//========= 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