ARGS.H 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. ** Command & Conquer Generals(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. //================================================================================================
  19. //
  20. // @@@@@ @@ @ @@@@ @@@@ @@@@ @@ @ @@@@ @@@@ @@@@@ @@@@@ @@@@ @@ @
  21. // @@ @ @@ @ @@ @ @@ @ @@ @ @@@ @ @@ @ @@ @ @@ @ @@ @ @@ @ @@ @
  22. // @@@@@ @@ @ @@ @@ @@@@@@ @@ @ @ @@@@ @@@@ @@@@@ @@@@@ @@@@@@ @@
  23. // @@ @ @@ @ @@ @ @@ @ @@ @ @@ @@ @@ @ @@ @ @@ @ @@ @ @@ @ @@
  24. // @@@@@ @@@@ @@@@ @@@@ @@ @ @@ @ @@@@ @@@@ @@ @ @@@@@ @@ @ @@
  25. //
  26. // Copyright (c) 1998, 1999 Westwood Studios -- CONFIDENTIAL
  27. //
  28. // ArgC_ArgV.h
  29. //
  30. //================================================================================================
  31. #ifndef ARGS_H
  32. #define ARGS_H
  33. //----------------------------------------------------------------------------
  34. // INCLUDES
  35. //----------------------------------------------------------------------------
  36. #include <windows.h>
  37. //#include "autorun.h"
  38. //----------------------------------------------------------------------------
  39. // DEFINES
  40. //----------------------------------------------------------------------------
  41. #define MAX_COMMAND_LINE_ARGUMENTS 10
  42. #define MAX_ARGUMENT_LENGTH 80
  43. //----------------------------------------------------------------------------
  44. // CLASS
  45. //----------------------------------------------------------------------------
  46. class Command_Line_Arguments
  47. {
  48. public:
  49. Command_Line_Arguments ( HINSTANCE, LPTSTR );
  50. Command_Line_Arguments ( LPTSTR ) {};
  51. Command_Line_Arguments ( HINSTANCE );
  52. ~Command_Line_Arguments( void );
  53. const char * Get_argv( int argument_index );
  54. int Get_argc();
  55. void Set_argv( int argument_index, char*arg );
  56. private:
  57. int ArgC;
  58. char ArgV[ MAX_COMMAND_LINE_ARGUMENTS ][ MAX_ARGUMENT_LENGTH ];
  59. };
  60. extern Command_Line_Arguments *Args;
  61. #endif // ARGC_ARGV_H