dxx-rebirth/include/args.h

110 lines
2.6 KiB
C
Raw Normal View History

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.
*/
/*
*
* Prototypes for accessing arguments.
2006-03-20 16:43:15 +00:00
*
*/
#ifndef _ARGS_H
#define _ARGS_H
extern int Num_args;
extern char * Args[];
2006-03-20 16:43:15 +00:00
extern int FindArg( char * s );
extern int FindResArg(char *prefix, int *sw, int *sh);
2006-03-20 16:43:15 +00:00
extern void InitArgs( int argc, char **argv );
// 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
// Edi - Editor Options
// Dbg - Debugging/Undocumented Options
typedef struct Arg
{
int SysShowCmdHelp;
int SysFPSIndicator;
int SysUseNiceFPS;
int SysMaxFPS;
char *SysMissionDir;
int SysLowMem;
int SysLegacyHomers;
char *SysPilot;
int SysWindow;
int SysAutoDemo;
int CtlNoMouse;
int CtlNoJoystick;
int CtlMouselook;
int CtlGrabMouse;
int SndNoSound;
int SndNoMusic;
float GfxAspectX;
float GfxAspectY;
int GfxGaugeHudMode;
int GfxHudMaxNumDisp;
int GfxUseHiresFont;
int GfxPersistentDebris;
#ifdef OGL
int OglTexMagFilt;
int OglTexMinFilt;
int OglAlphaEffects;
int OglReticle;
int OglScissorOk;
int OglVoodooHack;
int OglFixedFont;
#endif
2007-07-18 22:23:06 +00:00
int EdiNoBm;
char *MplGameProfile;
int MplNoBans;
int MplSaveBans;
int MplNoRedundancy;
int MplPlayerMessages;
int MplMsgColorLevel;
2007-07-22 01:34:00 +00:00
int MplPacketsPerSec;
const char *MplIpxNetwork;
int MplIpNoGetMyAddr;
char *MplIpMyAddr;
int MplIpBasePort;
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;
#ifdef OGL
int DbgAltTexMerge;
2007-07-22 20:56:23 +00:00
int DbgGlBpp;
int DbgGlIntensity4Ok;
int DbgGlLuminance4Alpha4Ok;
int DbgGlRGBA2Ok;
int DbgGlReadPixelsOk;
int DbgGlGetTexLevelParamOk;
int DbgGlSetGammaRampOk;
int DbgGlMemTarget;
#else
int DbgSdlHWSurface;
#endif
} __attribute__ ((packed)) Arg;
extern struct Arg GameArg;
2006-03-20 16:43:15 +00:00
#endif