fix(core): change hole constants to extern class

This commit is contained in:
Masahiko AMANO 2022-12-23 16:59:55 +03:00
parent fca32fa558
commit d404378251
4 changed files with 12 additions and 6 deletions

View File

@ -76,14 +76,14 @@ typedef struct shoppyou {
// ID of hole - an invalid record
#define HOLE_ID (-1)
// Hole sasa constant
static const Sasa HOLE_SASA = {HOLE_ID};
// Hole sasa constant with hole ID
extern const Sasa HOLE_SASA;
// Hole tanzaku constant
static const Tanzaku HOLE_TANZAKU = {HOLE_ID};
// Hole tanzaku constant with hole ID
extern const Tanzaku HOLE_TANZAKU;
// Hole kazari constant
static const Kazari HOLE_KAZARI = {HOLE_ID};
// Hole kazari constant with hole ID
extern const Kazari HOLE_KAZARI;
// ==================== SASAHYOU SECTION ==================== //

View File

@ -4,6 +4,8 @@
#include "../../include/core.h"
const Tanzaku HOLE_TANZAKU = {HOLE_ID};
// Sappyou file signature: 七夕冊表
const uint16_t SAPPYOU_SIG[4] = {L'', L'', L'', L''};

View File

@ -5,6 +5,8 @@
#include "../../include/core.h"
const Sasa HOLE_SASA = {HOLE_ID};
// Sasahyou file signature: 七夕笹表
const uint16_t SASAHYOU_SIG[4] = {L'', L'', L'', L''};

View File

@ -4,6 +4,8 @@
#include "../../include/core.h"
const Kazari HOLE_KAZARI = {HOLE_ID};
// Shoppyou file signature: 七夕飾表
static const uint16_t SHOPPYOU_SIG[4] = {L'', L'', L'', L''};