Initial commit of Command & Conquer Generals and Command & Conquer Generals Zero Hour source code.
This commit is contained in:
parent
2e338c00cb
commit
3d0ee53a05
6072 changed files with 2283311 additions and 0 deletions
70
Generals/Code/Tools/Autorun/ARGS.H
Normal file
70
Generals/Code/Tools/Autorun/ARGS.H
Normal file
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
** Command & Conquer Generals(tm)
|
||||
** Copyright 2025 Electronic Arts Inc.
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify
|
||||
** it under the terms of the GNU General Public License as published by
|
||||
** the Free Software Foundation, either version 3 of the License, or
|
||||
** (at your option) any later version.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful,
|
||||
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
** GNU General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU General Public License
|
||||
** along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
//================================================================================================
|
||||
//
|
||||
// @@@@@ @@ @ @@@@ @@@@ @@@@ @@ @ @@@@ @@@@ @@@@@ @@@@@ @@@@ @@ @
|
||||
// @@ @ @@ @ @@ @ @@ @ @@ @ @@@ @ @@ @ @@ @ @@ @ @@ @ @@ @ @@ @
|
||||
// @@@@@ @@ @ @@ @@ @@@@@@ @@ @ @ @@@@ @@@@ @@@@@ @@@@@ @@@@@@ @@
|
||||
// @@ @ @@ @ @@ @ @@ @ @@ @ @@ @@ @@ @ @@ @ @@ @ @@ @ @@ @ @@
|
||||
// @@@@@ @@@@ @@@@ @@@@ @@ @ @@ @ @@@@ @@@@ @@ @ @@@@@ @@ @ @@
|
||||
//
|
||||
// Copyright (c) 1998, 1999 Westwood Studios -- CONFIDENTIAL
|
||||
//
|
||||
// ArgC_ArgV.h
|
||||
//
|
||||
//================================================================================================
|
||||
|
||||
#ifndef ARGS_H
|
||||
#define ARGS_H
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// INCLUDES
|
||||
//----------------------------------------------------------------------------
|
||||
#include <windows.h>
|
||||
//#include "autorun.h"
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// DEFINES
|
||||
//----------------------------------------------------------------------------
|
||||
#define MAX_COMMAND_LINE_ARGUMENTS 10
|
||||
#define MAX_ARGUMENT_LENGTH 80
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// CLASS
|
||||
//----------------------------------------------------------------------------
|
||||
class Command_Line_Arguments
|
||||
{
|
||||
public:
|
||||
Command_Line_Arguments ( HINSTANCE, LPTSTR );
|
||||
Command_Line_Arguments ( LPTSTR ) {};
|
||||
Command_Line_Arguments ( HINSTANCE );
|
||||
~Command_Line_Arguments( void );
|
||||
|
||||
const char * Get_argv( int argument_index );
|
||||
int Get_argc();
|
||||
void Set_argv( int argument_index, char*arg );
|
||||
|
||||
private:
|
||||
int ArgC;
|
||||
char ArgV[ MAX_COMMAND_LINE_ARGUMENTS ][ MAX_ARGUMENT_LENGTH ];
|
||||
};
|
||||
|
||||
extern Command_Line_Arguments *Args;
|
||||
|
||||
#endif // ARGC_ARGV_H
|
Reference in a new issue