2020-02-22 11:55:34 +00:00
|
|
|
#pragma option -a1
|
|
|
|
#if GAME == 3
|
|
|
|
# define CFG_FN "yume.cfg"
|
|
|
|
typedef struct {
|
|
|
|
uint8_t bgm_mode;
|
|
|
|
uint8_t key_mode;
|
|
|
|
uint8_t rank;
|
|
|
|
int16_t unused;
|
|
|
|
} cfg_options_t;
|
|
|
|
#endif
|
|
|
|
#pragma option -a.
|
|
|
|
|
|
|
|
#include "th02/formats/cfg.h"
|
|
|
|
|
|
|
|
// Loads the [resident] pointer from the .CFG file, initializes the rest of
|
|
|
|
// the structure (in TH03 and TH04), and clamps the life, bomb, and BGM/SE
|
|
|
|
// mode fields to their respective ranges (in TH04 and TH05).
|
2019-12-08 05:32:01 +00:00
|
|
|
void near pascal cfg_load(void);
|
|
|
|
|
2020-02-22 11:55:34 +00:00
|
|
|
// Loads just the [resident] pointer from the .CFG file, and returns its new
|
|
|
|
// value.
|
|
|
|
resident_t __seg* near pascal cfg_load_resident(void);
|
|
|
|
|
2019-12-08 05:32:01 +00:00
|
|
|
// Saves the .CFG file, without changing its resident segment pointer.
|
|
|
|
void near pascal cfg_save(void);
|
|
|
|
|
|
|
|
// Like cfg_save(), but resets the resident segment pointer to zero.
|
|
|
|
void near pascal cfg_save_exit(void);
|