summaryrefslogtreecommitdiff
path: root/asm/rich4_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'asm/rich4_config.h')
-rw-r--r--asm/rich4_config.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/asm/rich4_config.h b/asm/rich4_config.h
new file mode 100644
index 0000000..9611131
--- /dev/null
+++ b/asm/rich4_config.h
@@ -0,0 +1,27 @@
+#include <stdint.h>
+
+typedef struct
+{
+ uint8_t key;
+ uint8_t mod;
+} rich4_key_t;
+
+typedef struct
+{
+ uint8_t game_speed;
+ uint8_t animation;
+ uint8_t music;
+ uint8_t sound_effect;
+ uint8_t auto_save;
+ uint8_t view;
+ uint8_t dummy1[2];
+ uint8_t day; /* offset 8 */
+ uint8_t month;
+ uint16_t year;
+ uint8_t dummy2[4];
+ rich4_key_t hotkeys[28]; /* offset 0x10 */
+} rich4_cfg;
+
+extern rich4_cfg global_rich4_cfg;
+void rich4_read_config(void);
+void rich4_write_config(void);