ReC98/th04/formats/scoredat.h

38 lines
859 B
C
Raw Normal View History

#include "th02/score.h"
#if GAME == 5
# define SCOREDAT_PLACES 5
#else
# define SCOREDAT_PLACES 10
#endif
#define SCOREDAT_NAME_LEN 8
typedef struct {
unsigned char g_name[SCOREDAT_PLACES][SCOREDAT_NAME_LEN + 1];
unsigned char g_points[SCOREDAT_PLACES][SCORE_DIGITS];
#if GAME == 5
unsigned char g_stage[SCOREDAT_PLACES];
unsigned char cleared;
unsigned char unused_1;
#else
unsigned char cleared;
unsigned char unused_1;
unsigned char g_stage[SCOREDAT_PLACES];
unsigned char unused_2[SCOREDAT_PLACES];
#endif
} scoredat_t;
typedef struct {
int8_t key1;
int8_t key2;
int16_t score_sum; // Sum of all bytes in [score], pre-encraption
scoredat_t score;
} scoredat_section_t;
extern scoredat_section_t hi;
// Used to simultaneously store scores for Marisa in TH04's OP.EXE. Still
// present in TH05, but unused.
extern scoredat_section_t hi2;