2006-03-20 16:43:15 +00:00
|
|
|
/*
|
|
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
|
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
|
|
|
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
*
|
2007-07-14 20:33:42 +00:00
|
|
|
* Prototypes for accessing arguments.
|
2006-03-20 16:43:15 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _ARGS_H
|
|
|
|
#define _ARGS_H
|
|
|
|
|
2007-07-14 20:33:42 +00:00
|
|
|
extern int Num_args;
|
|
|
|
extern char * Args[];
|
2006-03-20 16:43:15 +00:00
|
|
|
extern void InitArgs( int argc, char **argv );
|
2007-07-14 20:33:42 +00:00
|
|
|
|
|
|
|
// Struct that keeps all variables used by FindArg
|
|
|
|
// Sys - System Options
|
|
|
|
// Ctl - Control Options
|
|
|
|
// Snd - Sound Options
|
|
|
|
// Gfx - Graphics Options
|
|
|
|
// Ogl - OpenGL Options
|
|
|
|
// Mpl - Multiplayer Options
|
2007-07-14 22:36:04 +00:00
|
|
|
// Edi - Editor Options
|
2007-07-14 20:33:42 +00:00
|
|
|
// Dbg - Debugging/Undocumented Options
|
|
|
|
typedef struct Arg
|
|
|
|
{
|
2007-07-18 20:13:17 +00:00
|
|
|
int SysShowCmdHelp;
|
2007-07-14 20:33:42 +00:00
|
|
|
int SysFPSIndicator;
|
|
|
|
int SysUseNiceFPS;
|
|
|
|
int SysMaxFPS;
|
|
|
|
char *SysMissionDir;
|
2007-09-28 15:14:09 +00:00
|
|
|
int SysUsePlayersDir;
|
2007-07-14 20:33:42 +00:00
|
|
|
int SysLowMem;
|
|
|
|
int SysLegacyHomers;
|
|
|
|
char *SysPilot;
|
2007-07-15 21:22:07 +00:00
|
|
|
int SysWindow;
|
2007-07-14 20:33:42 +00:00
|
|
|
int SysAutoDemo;
|
2007-10-06 14:50:19 +00:00
|
|
|
int SysNoTitles;
|
2007-07-14 22:36:04 +00:00
|
|
|
int CtlNoMouse;
|
|
|
|
int CtlNoJoystick;
|
2007-07-14 20:33:42 +00:00
|
|
|
int CtlMouselook;
|
|
|
|
int CtlGrabMouse;
|
2007-07-14 22:36:04 +00:00
|
|
|
int SndNoSound;
|
|
|
|
int SndNoMusic;
|
2007-09-18 13:37:39 +00:00
|
|
|
int SndSdlMixer;
|
|
|
|
char *SndExternalMusic;
|
|
|
|
char *SndJukebox;
|
2007-07-15 15:23:45 +00:00
|
|
|
float GfxAspectX;
|
|
|
|
float GfxAspectY;
|
|
|
|
int GfxGaugeHudMode;
|
|
|
|
int GfxHudMaxNumDisp;
|
|
|
|
int GfxUseHiresFont;
|
|
|
|
int GfxPersistentDebris;
|
2007-08-29 23:21:13 +00:00
|
|
|
int GfxNoReticle;
|
2007-07-15 21:22:07 +00:00
|
|
|
#ifdef OGL
|
|
|
|
int OglTexMagFilt;
|
|
|
|
int OglTexMinFilt;
|
|
|
|
int OglAlphaEffects;
|
|
|
|
int OglReticle;
|
|
|
|
int OglVoodooHack;
|
|
|
|
int OglFixedFont;
|
2007-10-18 14:44:02 +00:00
|
|
|
int OglPrShot;
|
2007-07-15 21:22:07 +00:00
|
|
|
#endif
|
2007-07-18 22:23:06 +00:00
|
|
|
int EdiNoBm;
|
2007-09-20 14:22:57 +00:00
|
|
|
int MplGameProfile;
|
2007-07-16 02:34:51 +00:00
|
|
|
int MplNoRedundancy;
|
|
|
|
int MplPlayerMessages;
|
|
|
|
const char *MplIpxNetwork;
|
2007-08-08 21:11:51 +00:00
|
|
|
char *MplIpHostAddr;
|
2007-07-16 02:34:51 +00:00
|
|
|
int MplIpBasePort;
|
2007-12-17 22:45:45 +00:00
|
|
|
int MplIpNoRelay;
|
2007-07-18 20:13:17 +00:00
|
|
|
int DbgVerbose;
|
|
|
|
int DbgNoRun;
|
|
|
|
int DbgRenderStats;
|
|
|
|
char *DbgAltTex;
|
|
|
|
char *DbgTexMap;
|
2007-07-18 22:23:06 +00:00
|
|
|
int DbgShowMemInfo;
|
2007-07-22 01:34:00 +00:00
|
|
|
int DbgUseDoubleBuffer;
|
2007-07-22 20:40:39 +00:00
|
|
|
int DbgBigPig;
|
2007-07-18 20:13:17 +00:00
|
|
|
#ifdef OGL
|
|
|
|
int DbgAltTexMerge;
|
2007-07-22 20:56:23 +00:00
|
|
|
int DbgGlBpp;
|
2007-07-23 18:13:49 +00:00
|
|
|
int DbgGlIntensity4Ok;
|
|
|
|
int DbgGlLuminance4Alpha4Ok;
|
|
|
|
int DbgGlRGBA2Ok;
|
|
|
|
int DbgGlReadPixelsOk;
|
|
|
|
int DbgGlGetTexLevelParamOk;
|
|
|
|
int DbgGlSetGammaRampOk;
|
|
|
|
#else
|
|
|
|
int DbgSdlHWSurface;
|
2007-07-18 20:13:17 +00:00
|
|
|
#endif
|
2007-07-14 20:33:42 +00:00
|
|
|
} __attribute__ ((packed)) Arg;
|
|
|
|
|
|
|
|
extern struct Arg GameArg;
|
2006-03-20 16:43:15 +00:00
|
|
|
|
|
|
|
#endif
|