diff options
author | Iru Cai <mytbk920423@gmail.com> | 2021-05-16 15:44:33 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2021-05-16 15:47:48 +0800 |
commit | 22a73e6006c9bee8a2e713cc8528ce67ab6c8c66 (patch) | |
tree | 0446ab3c0a15863fe2fd9a437aa4abeb0352a0e1 /asm/rich4_config.h | |
parent | 608b303b70af02ec9e6d1bbf91e9f2c097df4e99 (diff) | |
download | rich4-master.tar.xz |
Diffstat (limited to 'asm/rich4_config.h')
-rw-r--r-- | asm/rich4_config.h | 27 |
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); |