Rise
The Vieneo Province
config.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define cfgverC 33
4 
5 #include "SoundConfig.h"
6 #include "InputConfig.h"
7 
8 class Config
9 {
10 public:
11  // local
12  unsigned char language = 0; // english, need to know before you log in for MOTD, GUI
13  bool g_bCheckSteamLanguage = false;
14  unsigned char configver = 0; // part and parcel to the file
15  char defaultuser[13] = { 0 }; // makes no sense to get from server since you would have to login
16  char defaultpass[16] = { 0 }; // makes no sense to get from server since you would have to login
17  char patchdate[24] = { 0 };
18  bool oldvphelp[128]{}; // to be deleted after everyone uploads their help
19  bool g_bSoundIntroMusic = true; // would be too late since we start playing it before they log in
20  bool g_bAutoLogin = true; // could split into 'remember login' and 'remember password' could also have it so it hits the "awaken" button for you
21 
22  // potentially remote
23  bool g_bStartFullscreen = false; // good candidate because this only is evaluated at the end of LOADING
24  float scale = 0.0f; // good candidate because we are already sending this to the server... but is it used in SPLASH and LOGIN and LOADING?
25 
42 
47 
48 private:
49  bool SaveDir = false;
50  bool initialized = false;
51  void Loader();
52 
53 public:
54  void Save();
55 
56  Config();
57 
58  void LoadPatchDate();
59  void SavePatchDate() const;
60 };
InputConfig inputConfigLeftToeBrake
Definition: config.h:35
void SavePatchDate() const
Definition: config.cpp:39
bool g_bCheckSteamLanguage
Definition: config.h:13
Config()
Definition: config.cpp:12
bool oldvphelp[128]
Definition: config.h:18
unsigned char language
Definition: config.h:12
bool g_bStartFullscreen
Definition: config.h:23
SoundConfig soundConfigLegacy
Definition: config.h:45
InputConfig inputConfigGas
Definition: config.h:33
InputConfig inputConfigRoll
Definition: config.h:27
InputConfig inputConfigLookVertical
Definition: config.h:38
char defaultpass[16]
Definition: config.h:16
bool SaveDir
Definition: config.h:49
void Save()
Definition: config.cpp:363
bool initialized
Definition: config.h:50
void LoadPatchDate()
Definition: config.cpp:21
InputConfig inputConfigThrustLeft
Definition: config.h:29
InputConfig inputConfigThrustRight
Definition: config.h:30
Definition: config.h:8
unsigned char configver
Definition: config.h:14
char defaultuser[13]
Definition: config.h:15
InputConfig inputConfigPitchTrim
Definition: config.h:39
InputConfig inputConfigPitch
Definition: config.h:26
SoundConfig soundConfigComms
Definition: config.h:44
bool g_bSoundIntroMusic
Definition: config.h:19
InputConfig inputConfigBrake
Definition: config.h:34
InputConfig inputConfigElevatorTrim
Definition: config.h:31
InputConfig inputConfigRightToeBrake
Definition: config.h:36
float scale
Definition: config.h:24
SoundConfig soundConfigRadio
Definition: config.h:46
bool g_bAutoLogin
Definition: config.h:20
InputConfig inputConfigWalkVertical
Definition: config.h:41
InputConfig inputConfigWalkLateral
Definition: config.h:40
InputConfig inputConfigYaw
Definition: config.h:28
SoundConfig soundConfigComputer
Definition: config.h:43
void Loader()
Definition: config.cpp:56
InputConfig inputConfigSteer
Definition: config.h:32
InputConfig inputConfigLookLateral
Definition: config.h:37
char patchdate[24]
Definition: config.h:17