summary refs log tree commit diff
path: root/src/config.h
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-08 15:46:39 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-08 15:52:39 +0700
commitda79599ad5201f4eebd3edaabbe4b33498de448e (patch)
tree4f026ad0bb2ab643baadf057d8f391dbc4a9568f /src/config.h
parent67cf9f61e91462eaf8e8caeaa7d0d7d3d9d1f711 (diff)
downloadblackshades-2.1.0.tar.gz
Move configuration parsing to Zig 2.1.0
The config file is now read from configuration directories instead of pwd.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
new file mode 100644
index 0000000..fa456b2
--- /dev/null
+++ b/src/config.h
@@ -0,0 +1,21 @@
+#ifndef BLACKSHADES_CONFIG_H
+#define BLACKSHADES_CONFIG_H
+
+#include <stdbool.h>
+#include <stdint.h>
+
+struct Config {
+	int screen_width;
+	int screen_height;
+	float mouse_sensitivity;
+	bool debug;
+	bool vsync;
+	bool blood;
+	bool blur;
+	bool menu;
+	bool custom_levels;
+	bool music;
+	bool azerty;
+};
+
+#endif // BLACKSHADES_CONFIG_H