summaryrefslogtreecommitdiff
path: root/src/code/z_construct.c
diff options
context:
space:
mode:
authorDragorn421 <Dragorn421@users.noreply.github.com>2024-08-22 22:33:50 +0200
committerGitHub <noreply@github.com>2024-08-22 22:33:50 +0200
commit98ba7ad2ab05be017722c9dc46b0929e5c911f55 (patch)
tree3e44b249ed7aecc2817236d1c460303695ace4b4 /src/code/z_construct.c
parentbdfa56e72d45c2f7e37d4b92afe17c584939f59b (diff)
Add T macro for translated debug strings (#2064)
* Add T macro for translated debug strings * Hyral -> Hyrule * put some more care into z_std_dma
Diffstat (limited to 'src/code/z_construct.c')
-rw-r--r--src/code/z_construct.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/code/z_construct.c b/src/code/z_construct.c
index a7bd1a658..8c1be3c70 100644
--- a/src/code/z_construct.c
+++ b/src/code/z_construct.c
@@ -32,8 +32,7 @@ void Interface_Init(PlayState* play) {
parameterSize = (uintptr_t)_parameter_staticSegmentRomEnd - (uintptr_t)_parameter_staticSegmentRomStart;
- // "Permanent PARAMETER Segment = %x"
- PRINTF("常駐PARAMETERセグメント=%x\n", parameterSize);
+ PRINTF(T("常駐PARAMETERセグメント=%x\n", "Permanent PARAMETER Segment = %x\n"), parameterSize);
interfaceCtx->parameterSegment = GAME_STATE_ALLOC(&play->state, parameterSize, "../z_construct.c", 159);
@@ -45,7 +44,7 @@ void Interface_Init(PlayState* play) {
interfaceCtx->doActionSegment = GAME_STATE_ALLOC(&play->state, 3 * DO_ACTION_TEX_SIZE, "../z_construct.c", 166);
- PRINTF("DOアクション テクスチャ初期=%x\n", 3 * DO_ACTION_TEX_SIZE); // "DO Action Texture Initialization"
+ PRINTF(T("DOアクション テクスチャ初期=%x\n", "DO Action Texture Initialization = %x\n"), 3 * DO_ACTION_TEX_SIZE);
PRINTF("parameter->do_actionSegment=%x\n", interfaceCtx->doActionSegment);
ASSERT(interfaceCtx->doActionSegment != NULL, "parameter->do_actionSegment != NULL", "../z_construct.c", 169);
@@ -91,8 +90,8 @@ void Interface_Init(PlayState* play) {
interfaceCtx->iconItemSegment = GAME_STATE_ALLOC(&play->state, ICON_ITEM_SEGMENT_SIZE, "../z_construct.c", 190);
- // "Icon Item Texture Initialization = %x"
- PRINTF("アイコンアイテム テクスチャ初期=%x\n", ICON_ITEM_SEGMENT_SIZE);
+ PRINTF(T("アイコンアイテム テクスチャ初期=%x\n", "Icon Item Texture Initialization = %x\n"),
+ ICON_ITEM_SEGMENT_SIZE);
PRINTF("parameter->icon_itemSegment=%x\n", interfaceCtx->iconItemSegment);
ASSERT(interfaceCtx->iconItemSegment != NULL, "parameter->icon_itemSegment != NULL", "../z_construct.c", 193);
@@ -165,11 +164,12 @@ void Interface_Init(PlayState* play) {
if ((gSaveContext.timerState >= TIMER_STATE_UP_INIT) && (gSaveContext.timerState <= TIMER_STATE_UP_FREEZE)) {
gSaveContext.timerState = TIMER_STATE_OFF;
- // "Timer Stop!!!!!!!!!!!!!!!!!!!!!!"
- PRINTF("タイマー停止!!!!!!!!!!!!!!!!!!!!! = %d\n", gSaveContext.timerState);
+ PRINTF(T("タイマー停止!!!!!!!!!!!!!!!!!!!!! = %d\n",
+ "Timer Stop!!!!!!!!!!!!!!!!!!!!! = %d\n"),
+ gSaveContext.timerState);
}
- PRINTF("PARAMETER領域=%x\n", parameterSize + 0x5300); // "Parameter Area = %x"
+ PRINTF(T("PARAMETER領域=%x\n", "Parameter Area = %x\n"), parameterSize + 0x5300);
Health_InitMeter(play);
Map_Init(play);
@@ -215,7 +215,7 @@ void Message_Init(PlayState* play) {
PRINTF("message->fukidashiSegment=%x\n", msgCtx->textboxSegment);
- PRINTF("吹き出しgame_alloc=%x\n", TEXTBOX_SEGMENT_SIZE); // "Textbox game_alloc=%x"
+ PRINTF(T("吹き出しgame_alloc=%x\n", "Textbox game_alloc=%x\n"), TEXTBOX_SEGMENT_SIZE);
ASSERT(msgCtx->textboxSegment != NULL, "message->fukidashiSegment != NULL", "../z_construct.c", 352);
Font_LoadOrderedFont(&play->msgCtx.font);