mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-13 11:24:40 +00:00
T() macro 2 (#2073)
* T() in idle.c, irqmgr.c, padmgr.c, z_locale.c * T() in z_sram.c * T() in z_bgcheck.c, z_scene.c * format
This commit is contained in:
parent
1f2e82c39e
commit
37f0774778
7 changed files with 125 additions and 137 deletions
|
@ -77,8 +77,7 @@ void Object_InitContext(PlayState* play, ObjectContext* objectCtx) {
|
|||
}
|
||||
|
||||
PRINTF(VT_FGCOL(GREEN));
|
||||
// "Object exchange bank data %8.3fKB"
|
||||
PRINTF("オブジェクト入れ替えバンク情報 %8.3fKB\n", spaceSize / 1024.0f);
|
||||
PRINTF(T("オブジェクト入れ替えバンク情報 %8.3fKB\n", "Object exchange bank data %8.3fKB\n"), spaceSize / 1024.0f);
|
||||
PRINTF(VT_RST);
|
||||
|
||||
objectCtx->spaceStart = objectCtx->slots[0].segment =
|
||||
|
@ -165,8 +164,8 @@ void* func_800982FC(ObjectContext* objectCtx, s32 slot, s16 objectId) {
|
|||
|
||||
ASSERT(nextPtr < objectCtx->spaceEnd, "nextptr < this->endSegment", "../z_scene.c", 381);
|
||||
|
||||
// "Object exchange free size=%08x"
|
||||
PRINTF("オブジェクト入れ替え空きサイズ=%08x\n", (uintptr_t)objectCtx->spaceEnd - (uintptr_t)nextPtr);
|
||||
PRINTF(T("オブジェクト入れ替え空きサイズ=%08x\n", "Object exchange free size=%08x\n"),
|
||||
(uintptr_t)objectCtx->spaceEnd - (uintptr_t)nextPtr);
|
||||
|
||||
return nextPtr;
|
||||
}
|
||||
|
@ -186,7 +185,7 @@ s32 Scene_ExecuteCommands(PlayState* play, SceneCmd* sceneCmd) {
|
|||
gSceneCmdHandlers[cmdCode](play, sceneCmd);
|
||||
} else {
|
||||
PRINTF(VT_FGCOL(RED));
|
||||
PRINTF("code の値が異常です\n"); // "code variable is abnormal"
|
||||
PRINTF(T("code の値が異常です\n", "code variable is abnormal\n"));
|
||||
PRINTF(VT_RST);
|
||||
}
|
||||
|
||||
|
@ -433,8 +432,7 @@ BAD_RETURN(s32) Scene_CommandAlternateHeaderList(PlayState* play, SceneCmd* cmd)
|
|||
Scene_ExecuteCommands(play, SEGMENTED_TO_VIRTUAL(altHeader));
|
||||
(cmd + 1)->base.code = SCENE_CMD_ID_END;
|
||||
} else {
|
||||
// "Coughh! There is no specified dataaaaa!"
|
||||
PRINTF("\nげぼはっ! 指定されたデータがないでええっす!");
|
||||
PRINTF(T("\nげぼはっ! 指定されたデータがないでええっす!", "\nCoughh! There is no specified dataaaaa!"));
|
||||
|
||||
if (gSaveContext.sceneLayer == SCENE_LAYER_ADULT_NIGHT) {
|
||||
// Due to the condition above, this is equivalent to accessing altHeaders[SCENE_LAYER_ADULT_DAY - 1]
|
||||
|
@ -442,8 +440,7 @@ BAD_RETURN(s32) Scene_CommandAlternateHeaderList(PlayState* play, SceneCmd* cmd)
|
|||
cmd->altHeaders
|
||||
.data))[(gSaveContext.sceneLayer - SCENE_LAYER_ADULT_NIGHT) + SCENE_LAYER_ADULT_DAY - 1];
|
||||
|
||||
// "Using adult day data there!"
|
||||
PRINTF("\nそこで、大人の昼データを使用するでええっす!!");
|
||||
PRINTF(T("\nそこで、大人の昼データを使用するでええっす!!", "\nUsing adult day data there!!"));
|
||||
|
||||
if (altHeader != NULL) {
|
||||
Scene_ExecuteCommands(play, SEGMENTED_TO_VIRTUAL(altHeader));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue