Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/text/define_text.inc.c
7854 views
1
// == debug table ==
2
3
#ifndef VERSION_EU
4
5
// (this wasn't translated for US, and was removed in EU)
6
7
static const u8 Debug0[] = {
8
_("STAGE SELECT\n"
9
" つづける?\n"
10
" 1 マウンテン\n"
11
" 2 ファイアーバブル\n"
12
" 3 スノースライダー\n"
13
" 4 ウォーターランド\n"
14
"   クッパ1ごう\n"
15
" もどる")
16
};
17
18
static const u8 Debug1[] = {
19
_("PAUSE    \n"
20
" つづける?\n"
21
" やめる ?")
22
};
23
24
static const struct DialogEntry debug_text_entry_0 = {
25
1, 8, 30, 200, Debug0
26
};
27
28
static const struct DialogEntry debug_text_entry_1 = {
29
1, 3, 100, 150, Debug1
30
};
31
32
const struct DialogEntry *const seg2_debug_text_table[] = {
33
&debug_text_entry_0, &debug_text_entry_1, NULL,
34
};
35
36
#endif
37
38
39
// == dialog ==
40
// (defines en_dialog_table etc.)
41
42
#define DEFINE_DIALOG(id, _1, _2, _3, _4, str) \
43
static const u8 dialog_text_ ## id[] = { str };
44
45
#include "dialogs.h"
46
47
#undef DEFINE_DIALOG
48
#define DEFINE_DIALOG(id, unused, linesPerBox, leftOffset, width, _) \
49
static const struct DialogEntry dialog_entry_ ## id = { \
50
unused, linesPerBox, leftOffset, width, dialog_text_ ## id \
51
};
52
53
#include "dialogs.h"
54
55
#undef DEFINE_DIALOG
56
#define DEFINE_DIALOG(id, _1, _2, _3, _4, _5) &dialog_entry_ ## id,
57
58
const struct DialogEntry *const seg2_dialog_table[] = {
59
#include "dialogs.h"
60
NULL
61
};
62
63
64
// == courses ==
65
// (defines en_course_name_table etc.)
66
// The game duplicates this in levels/menu/leveldata.c in EU, so we split
67
// it out into a separate include file.
68
69
#define COURSE_TABLE seg2_course_name_table
70
#include "define_courses.inc.c"
71
72
// == acts ==
73
// (defines en_act_name_table etc.)
74
75
#define COURSE_ACTS(id, name, a,b,c,d,e,f) \
76
static const u8 act_name_ ## id ## _1[] = { a }; \
77
static const u8 act_name_ ## id ## _2[] = { b }; \
78
static const u8 act_name_ ## id ## _3[] = { c }; \
79
static const u8 act_name_ ## id ## _4[] = { d }; \
80
static const u8 act_name_ ## id ## _5[] = { e }; \
81
static const u8 act_name_ ## id ## _6[] = { f };
82
83
#define SECRET_STAR(id, name)
84
#define CASTLE_SECRET_STARS(str)
85
86
#undef EXTRA_TEXT
87
#define EXTRA_TEXT(id, str) \
88
static const u8 extra_text_ ## id[] = { str };
89
90
#include "courses.h"
91
92
#undef COURSE_ACTS
93
#undef EXTRA_TEXT
94
95
#define COURSE_ACTS(id, name, a,b,c,d,e,f) \
96
act_name_ ## id ## _1, act_name_ ## id ## _2, act_name_ ## id ## _3, \
97
act_name_ ## id ## _4, act_name_ ## id ## _5, act_name_ ## id ## _6,
98
#define EXTRA_TEXT(id, str) extra_text_ ## id,
99
100
const u8 *const seg2_act_name_table[] = {
101
#include "courses.h"
102
NULL
103
};
104
105