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
|
|
|
|
2015-07-04 21:01:17 +00:00
|
|
|
#if defined(DXX_BUILD_DESCENT_I) || defined(DXX_BUILD_DESCENT_II)
|
2015-07-25 23:10:45 +00:00
|
|
|
#include "player-callsign.h"
|
2015-07-04 21:01:17 +00:00
|
|
|
#endif
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2012-11-11 22:12:51 +00:00
|
|
|
#ifdef __cplusplus
|
2016-08-06 19:55:25 +00:00
|
|
|
#include "mission.h"
|
2014-06-21 23:55:24 +00:00
|
|
|
#include "pack.h"
|
2014-12-22 04:35:47 +00:00
|
|
|
#include "compiler-array.h"
|
|
|
|
#include "ntstring.h"
|
2012-11-11 22:12:51 +00:00
|
|
|
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dcx {
|
2015-07-18 03:49:47 +00:00
|
|
|
struct CCfg : prohibit_void_ptr<CCfg>
|
|
|
|
{
|
|
|
|
bool VSync;
|
2015-07-18 21:01:56 +00:00
|
|
|
bool Grabinput;
|
2015-12-18 04:08:23 +00:00
|
|
|
bool WindowMode;
|
2015-12-18 04:08:23 +00:00
|
|
|
int TexFilt;
|
2016-08-06 19:55:25 +00:00
|
|
|
ntstring<MISSION_NAME_LEN> LastMission;
|
2016-08-06 19:55:25 +00:00
|
|
|
ntstring<PATH_MAX - 1> CMLevelMusicPath;
|
2016-08-06 19:55:25 +00:00
|
|
|
array<ntstring<PATH_MAX - 1>, 5> CMMiscMusic;
|
2015-07-18 03:49:47 +00:00
|
|
|
};
|
|
|
|
|
2015-12-13 18:00:48 +00:00
|
|
|
extern struct CCfg CGameCfg;
|
|
|
|
}
|
|
|
|
|
2016-01-09 16:38:15 +00:00
|
|
|
#ifdef dsx
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dsx {
|
2014-12-22 04:35:47 +00:00
|
|
|
struct Cfg : prohibit_void_ptr<Cfg>
|
2008-04-06 20:23:28 +00:00
|
|
|
{
|
2010-06-14 08:13:16 +00:00
|
|
|
int MusicType;
|
|
|
|
int CMLevelMusicPlayOrder;
|
2008-04-06 20:23:28 +00:00
|
|
|
int GammaLevel;
|
|
|
|
int ResolutionX;
|
|
|
|
int ResolutionY;
|
|
|
|
int AspectX;
|
|
|
|
int AspectY;
|
2015-07-04 21:01:17 +00:00
|
|
|
uint8_t DigiVolume;
|
|
|
|
uint8_t MusicVolume;
|
2015-03-22 18:49:20 +00:00
|
|
|
bool Multisample;
|
|
|
|
bool FPSIndicator;
|
2015-07-04 21:01:17 +00:00
|
|
|
bool ReverseStereo;
|
|
|
|
bool OrigTrackOrder;
|
2013-03-03 01:03:33 +00:00
|
|
|
#ifdef DXX_BUILD_DESCENT_II
|
2015-03-22 18:49:20 +00:00
|
|
|
bool MovieSubtitles;
|
2013-03-03 01:03:33 +00:00
|
|
|
int MovieTexFilt;
|
2015-07-04 21:01:17 +00:00
|
|
|
#endif
|
|
|
|
callsign_t LastPlayer;
|
|
|
|
array<int, 2> CMLevelMusicTrack;
|
2014-06-21 23:55:24 +00:00
|
|
|
};
|
2008-04-06 20:23:28 +00:00
|
|
|
extern struct Cfg GameCfg;
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2010-06-14 08:13:16 +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
|
2009-03-03 12:55:27 +00:00
|
|
|
|
2008-04-06 20:23:28 +00:00
|
|
|
extern int ReadConfigFile(void);
|
|
|
|
extern int WriteConfigFile(void);
|
2015-12-13 18:00:48 +00:00
|
|
|
}
|
|
|
|
#endif
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2012-11-11 22:12:51 +00:00
|
|
|
#endif
|