From 22a73e6006c9bee8a2e713cc8528ce67ab6c8c66 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sun, 16 May 2021 15:44:33 +0800 Subject: use rich4_config --- asm/rich4_config.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 asm/rich4_config.h (limited to 'asm/rich4_config.h') 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 + +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); -- cgit v1.2.3