1 
2 #ifndef _SETTINGS_H
3 #define _SETTINGS_H
4 
5 #include "input.h"
6 
7 struct Settings
8 {
9   uint32_t version;
10   int resolution;
11   int last_save_slot;
12   bool show_fps;
13   bool fullscreen;
14 
15   bool sound_enabled;
16   int music_enabled;
17   uint8_t new_music;
18 
19   bool skip_intro;
20   bool rumble;
21   bool strafing;
22   bool animated_facepics;
23   bool lights;
24   bool control_scheme;
25   int16_t sfx_volume;
26   int16_t music_volume;
27   int8_t music_interpolation;
28 
29   in_action input_mappings[INPUT_COUNT];
30   char language[256];
31 };
32 
33 bool settings_load(Settings *settings = NULL);
34 bool settings_save(Settings *settings = NULL);
35 
36 extern Settings *settings;
37 extern Settings normal_settings;
38 
39 #endif
40