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
49 lines
1.1 KiB
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//=============================================================================//
|
|
|
|
#ifndef _RUNCOMMANDS_H
|
|
#define _RUNCOMMANDS_H
|
|
|
|
#include <afxtempl.h>
|
|
|
|
//
|
|
// RunCommands functions
|
|
//
|
|
|
|
enum
|
|
{
|
|
CCChangeDir = 0x100,
|
|
CCCopyFile,
|
|
CCDelFile,
|
|
CCRenameFile,
|
|
CCGenerateGridNav,
|
|
};
|
|
|
|
// 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; // Obsolete, but kept here for file backwards compatibility
|
|
BOOL bNoWait;
|
|
|
|
} CCOMMAND, *PCCOMMAND;
|
|
|
|
// list of commands:
|
|
typedef CArray<CCOMMAND, CCOMMAND&> CCommandArray;
|
|
|
|
// run a list of commands:
|
|
bool RunCommands(CCommandArray& Commands, LPCTSTR pszDocName, bool bWaitForKeypress);
|
|
void FixGameVars(char *pszSrc, char *pszDst, BOOL bUseQuotes = TRUE);
|
|
bool IsRunningCommands();
|
|
|
|
#endif // _RUNCOMMANDS_H
|