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.
|
|
|
|
*/
|
2008-04-06 20:23:28 +00:00
|
|
|
|
2006-03-20 16:43:15 +00:00
|
|
|
/*
|
|
|
|
*
|
2008-04-06 20:23:28 +00:00
|
|
|
* prototype definitions for descent.cfg reading/writing
|
2006-03-20 16:43:15 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CONFIG_H
|
|
|
|
#define _CONFIG_H
|
|
|
|
|
|
|
|
#include "player.h"
|
2008-04-06 20:23:28 +00:00
|
|
|
#include "mission.h"
|
|
|
|
|
|
|
|
typedef struct Cfg
|
|
|
|
{
|
|
|
|
ubyte DigiVolume;
|
|
|
|
ubyte MidiVolume;
|
|
|
|
ubyte RedbookVolume;
|
|
|
|
int ReverseStereo;
|
|
|
|
int GammaLevel;
|
|
|
|
char LastPlayer[CALLSIGN_LEN+1];
|
|
|
|
char LastMission[MISSION_NAME_LEN+1];
|
|
|
|
int ResolutionX;
|
|
|
|
int ResolutionY;
|
|
|
|
int AspectX;
|
|
|
|
int AspectY;
|
|
|
|
int WindowMode;
|
|
|
|
int TexFilt;
|
2008-04-21 18:39:49 +00:00
|
|
|
int VSync;
|
2008-04-06 20:23:28 +00:00
|
|
|
} __attribute__ ((packed)) Cfg;
|
|
|
|
|
|
|
|
extern struct Cfg GameCfg;
|
2006-03-20 16:43:15 +00:00
|
|
|
|
|
|
|
extern int ReadConfigFile(void);
|
|
|
|
extern int WriteConfigFile(void);
|
|
|
|
|
2008-04-06 20:23:28 +00:00
|
|
|
#endif
|