dxx-rebirth/common/main/config.h

78 lines
2.1 KiB
C
Raw Normal View History

2006-03-20 17:12:09 +00:00
/*
2014-06-01 17:55:23 +00:00
* Portions of this file are copyright Rebirth contributors and licensed as
* described in COPYING.txt.
* Portions of this file are copyright Parallax Software and licensed
* according to the Parallax license below.
* See COPYING.txt for license details.
2006-03-20 17:12:09 +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-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
*/
/*
*
* prototype definitions for descent.cfg reading/writing
*
*/
2015-03-22 18:49:20 +00:00
#pragma once
2006-03-20 17:12:09 +00:00
#include "player.h"
#include "mission.h"
2006-03-20 17:12:09 +00:00
#ifdef __cplusplus
#include "pack.h"
2014-12-22 04:35:47 +00:00
#include "compiler-array.h"
#include "ntstring.h"
2014-12-22 04:35:47 +00:00
struct Cfg : prohibit_void_ptr<Cfg>
{
ubyte DigiVolume;
ubyte MusicVolume;
2015-03-22 18:49:20 +00:00
bool ReverseStereo;
bool Grabinput;
bool OrigTrackOrder;
int MusicType;
int CMLevelMusicPlayOrder;
2015-04-19 04:18:49 +00:00
array<int, 2> CMLevelMusicTrack;
2014-12-22 04:35:47 +00:00
ntstring<PATH_MAX - 1> CMLevelMusicPath;
2014-12-22 04:35:48 +00:00
array<ntstring<PATH_MAX - 1>, 5> CMMiscMusic;
int GammaLevel;
2014-07-05 16:48:12 +00:00
callsign_t LastPlayer;
2015-03-22 18:49:20 +00:00
ntstring<MISSION_NAME_LEN> LastMission;
int ResolutionX;
int ResolutionY;
int AspectX;
int AspectY;
int TexFilt;
2015-03-22 18:49:20 +00:00
bool WindowMode;
bool VSync;
bool Multisample;
bool FPSIndicator;
#ifdef DXX_BUILD_DESCENT_II
2015-03-22 18:49:20 +00:00
bool MovieSubtitles;
int MovieTexFilt;
#endif
};
2006-03-20 17:12:09 +00:00
extern struct Cfg GameCfg;
2006-03-20 17:12:09 +00:00
//#ifdef USE_SDLMIXER
//#define EXT_MUSIC_ON (GameCfg.SndEnableRedbook || GameCfg.JukeboxOn)
//#else
//#define EXT_MUSIC_ON (GameCfg.SndEnableRedbook) // JukeboxOn shouldn't do anything if it's not supported
//#endif
extern int ReadConfigFile(void);
extern int WriteConfigFile(void);
2006-03-20 17:12:09 +00:00
#endif