forked from snesrev/zelda3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
67 lines (61 loc) · 1.47 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
#pragma once
#include "types.h"
#include <SDL_keycode.h>
enum {
kKeys_Controls = 0,
kKeys_Controls_Last = kKeys_Controls + 11,
kKeys_Load,
kKeys_Load_Last = kKeys_Load + 19,
kKeys_Save,
kKeys_Save_Last = kKeys_Save + 19,
kKeys_Replay,
kKeys_Replay_Last = kKeys_Replay + 19,
kKeys_LoadRef,
kKeys_LoadRef_Last = kKeys_LoadRef + 19,
kKeys_ReplayRef,
kKeys_ReplayRef_Last = kKeys_ReplayRef + 19,
kKeys_CheatLife,
kKeys_CheatKeys,
kKeys_CheatEquipment,
kKeys_CheatWalkThroughWalls,
kKeys_ClearKeyLog,
kKeys_StopReplay,
kKeys_Fullscreen,
kKeys_Reset,
kKeys_Pause,
kKeys_PauseDimmed,
kKeys_Turbo,
kKeys_ReplayTurbo,
kKeys_WindowBigger,
kKeys_WindowSmaller,
kKeys_DisplayPerf,
kKeys_ToggleRenderer,
kKeys_Total,
};
typedef struct Config {
int window_width;
int window_height;
bool enhanced_mode7;
bool new_renderer;
bool ignore_aspect_ratio;
uint8 fullscreen;
uint8 window_scale;
bool enable_audio;
uint16 audio_freq;
uint8 audio_channels;
uint16 audio_samples;
bool autosave;
uint8 extended_aspect_ratio;
bool extend_y;
bool no_sprite_limits;
bool display_perf_title;
bool enable_msu;
uint32 features0;
const char *link_graphics;
uint8 *memory_buffer;
} Config;
extern Config g_config;
uint8 *ReadFile(const char *name, size_t *length);
void ParseConfigFile();
void AfterConfigParse();
int FindCmdForSdlKey(SDL_Keycode code, SDL_Keymod mod);