2010-10-02 17:04:20 +00:00
|
|
|
/* --------------------------------------------------------------------
|
|
|
|
EXTREME TUXRACER
|
|
|
|
|
|
|
|
Copyright (C) 2010 Extreme Tuxracer Team
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
---------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef GAME_CONFIG_H
|
|
|
|
#define GAME_CONFIG_H
|
|
|
|
|
|
|
|
#include "bh.h"
|
|
|
|
|
2013-05-09 18:06:50 +00:00
|
|
|
struct TParam {
|
2010-10-02 17:04:20 +00:00
|
|
|
// defined at runtime:
|
2016-01-18 16:55:59 +00:00
|
|
|
std::string config_dir;
|
2016-02-04 10:50:08 +00:00
|
|
|
std::string save_dir;
|
2016-01-18 16:55:59 +00:00
|
|
|
std::string screenshot_dir;
|
|
|
|
std::string configfile;
|
2010-10-02 17:04:20 +00:00
|
|
|
|
|
|
|
// ------------------------------------
|
|
|
|
// main config params:
|
2016-01-18 16:55:59 +00:00
|
|
|
std::size_t res_type;
|
2013-09-12 17:39:10 +00:00
|
|
|
uint32_t framerate;
|
2016-01-18 16:55:59 +00:00
|
|
|
int perf_level;
|
|
|
|
std::size_t language;
|
|
|
|
int sound_volume;
|
|
|
|
int music_volume;
|
2013-08-15 14:21:01 +00:00
|
|
|
|
|
|
|
int forward_clip_distance;
|
|
|
|
int backward_clip_distance;
|
|
|
|
int fov;
|
|
|
|
int bpp_mode;
|
|
|
|
int tree_detail_distance;
|
|
|
|
int tux_sphere_divisions;
|
|
|
|
int tux_shadow_sphere_divisions;
|
|
|
|
int course_detail_level; // only for quadtree
|
2010-10-02 17:04:20 +00:00
|
|
|
|
|
|
|
int use_papercut_font;
|
|
|
|
bool ice_cursor;
|
|
|
|
bool full_skybox;
|
2013-06-23 11:00:09 +00:00
|
|
|
bool use_quad_scale; // scaling type for menus
|
2016-01-09 11:04:11 +00:00
|
|
|
bool fullscreen;
|
2013-05-15 19:40:57 +00:00
|
|
|
|
2016-01-18 16:55:59 +00:00
|
|
|
std::string menu_music;
|
|
|
|
std::string credits_music;
|
|
|
|
std::string config_music;
|
2010-10-02 17:04:20 +00:00
|
|
|
|
2010-12-09 16:47:36 +00:00
|
|
|
// these params are not saved in options file
|
2016-01-09 11:04:11 +00:00
|
|
|
TViewMode view_mode;
|
2013-08-15 14:21:01 +00:00
|
|
|
bool ui_snow;
|
|
|
|
bool display_fps;
|
2010-10-02 17:04:20 +00:00
|
|
|
bool show_hud;
|
2013-05-09 18:06:50 +00:00
|
|
|
};
|
2010-10-02 17:04:20 +00:00
|
|
|
|
2014-01-18 09:55:13 +00:00
|
|
|
void InitConfig();
|
|
|
|
void SaveConfigFile();
|
2010-10-02 17:04:20 +00:00
|
|
|
|
|
|
|
extern TParam param;
|
|
|
|
|
2013-05-15 19:40:57 +00:00
|
|
|
#endif
|