-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
84 lines (72 loc) · 1.69 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#pragma once
#include <string>
#include "objectgraphics.h"
#include "soundhandler.h"
#include "xmp/include/xmp.h"
//just for controller defines
#include <SDL2/SDL.h>
namespace Config
{
enum keyenum
{
KEY_UP,
KEY_DOWN,
KEY_LEFT,
KEY_RIGHT,
KEY_SLEFT,
KEY_SRIGHT,
KEY_STRAFEMOD,
KEY_SHOOT,
KEY_END
};
void SetZM(bool zm);
std::string GetScriptName();
std::string GetPicsDir();
std::string GetLevelDir();
std::string GetMiscDir();
std::string GetObjectFilename(ObjectGraphics::ObjectGraphicType i);
std::string GetGoreFilename(ObjectGraphics::ObjectGraphicType i);
std::string GetSoundFilename(SoundHandler::Sounds i);
std::string GetMusicFilename(int i);
std::string GetMusicDir();
int GetKey(keyenum k);
void SetKey(keyenum k, int newval);
void GetRenderSizes(int &rw, int &rh, int &ww, int& wh);
int32_t GetFocalLength();
int GetMouseSens();
void SetMouseSens(int sens);
int GetBlood();
void SetBlood(int b);
void SetDebug(bool b);
bool GetDebug();
void SetFPS(uint32_t f);
uint32_t GetFPS();
void SetFullscreen(int f);
int GetFullscreen();
int GetMT();
void SetMT(int s);
bool GetVSync();
int GetAutoFire();
void SetAutoFire(int a);
//controller support
bool HaveController();
Sint16 GetControllerRot();
Sint16 GetControllerY();
Sint16 GetControllerX();
bool GetControllerFire();
bool GetControllerDown();
bool GetControllerUp();
bool GetControllerStart();
bool GetControllerBack();
int GetSwitchSticks();
void SetSwitchSticks(int s);
// sound options
int GetSFXVol();
void SetSFXVol(int vol);
int GetMusicVol();
void SetMusicVol(int vol);
void RegisterMusContext(xmp_context ctx);
void RegisterWin(SDL_Window* _win);
void Init();
void Save();
};