ReC98/th01/formats/cfg.hpp

22 lines
478 B
C++
Raw Normal View History

#define CFG_FN "reiiden.cfg"
#define CFG_ID "REIIDEN"
struct cfg_options_t {
int8_t rank;
bgm_mode_t bgm_mode;
int8_t bombs;
int8_t lives_extra; // Add 2 for the actual number of lives
};
#define CFG_RANK_DEFAULT (RANK_NORMAL)
static const bgm_mode_t CFG_BGM_MODE_DEFAULT = BGM_MODE_MDRV2;
#define CFG_BOMBS_DEFAULT (1)
#define CFG_LIVES_EXTRA_DEFAULT (2)
static const int8_t CFG_LIVES_EXTRA_MAX = 5;
struct cfg_t {
char id[sizeof(CFG_ID) - 1];
cfg_options_t opts;
};