mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-17 13:24:45 +00:00
T() macro 6 (#2090)
* T() in z_skelanime.c * T() in z_eff_blure.c * T() in z_play.c * T() in z_jpeg.c * T() in z_horse.c * T() in z_eff_spark.c * T() in z_malloc.c * T() in z_effect_soft_sprite.c * add todo on translating "確保" (litterally ~"secure", but may be better as "allocate"-ish) * review * format
This commit is contained in:
parent
fd14ddcbf1
commit
6b58a15fc0
8 changed files with 106 additions and 102 deletions
|
@ -360,9 +360,9 @@ void Play_Init(GameState* thisx) {
|
|||
// The emulator constantly checks whether PC is 0x81000000, so this works even though it's not a valid address.
|
||||
if ((gEntranceTable[((void)0, gSaveContext.save.entranceIndex)].sceneId == SCENE_GERUDO_VALLEY) &&
|
||||
gSaveContext.sceneLayer == 6) {
|
||||
PRINTF("エンディングはじまるよー\n"); // "The ending starts"
|
||||
PRINTF(T("エンディングはじまるよー\n", "The ending starts\n"));
|
||||
((void (*)(void))0x81000000)();
|
||||
PRINTF("出戻り?\n"); // "Return?"
|
||||
PRINTF(T("出戻り?\n", "Return?\n"));
|
||||
}
|
||||
|
||||
Cutscene_HandleEntranceTriggers(this);
|
||||
|
@ -429,8 +429,8 @@ void Play_Init(GameState* thisx) {
|
|||
zAlloc = (uintptr_t)GAME_STATE_ALLOC(&this->state, zAllocSize, "../z_play.c", 2918);
|
||||
zAllocAligned = (zAlloc + 8) & ~0xF;
|
||||
ZeldaArena_Init((void*)zAllocAligned, zAllocSize - (zAllocAligned - zAlloc));
|
||||
// "Zelda Heap"
|
||||
PRINTF("ゼルダヒープ %08x-%08x\n", zAllocAligned, (u8*)zAllocAligned + zAllocSize - (s32)(zAllocAligned - zAlloc));
|
||||
PRINTF(T("ゼルダヒープ %08x-%08x\n", "Zelda Heap %08x-%08x\n"), zAllocAligned,
|
||||
(u8*)zAllocAligned + zAllocSize - (s32)(zAllocAligned - zAlloc));
|
||||
|
||||
#if OOT_DEBUG
|
||||
Fault_AddClient(&D_801614B8, ZeldaArena_Display, NULL, NULL);
|
||||
|
@ -533,7 +533,7 @@ void Play_Update(PlayState* this) {
|
|||
switch (gTransitionTileState) {
|
||||
case TRANS_TILE_PROCESS:
|
||||
if (TransitionTile_Init(&gTransitionTile, 10, 7) == NULL) {
|
||||
PRINTF("fbdemo_init呼出し失敗!\n"); // "fbdemo_init call failed!"
|
||||
PRINTF(T("fbdemo_init呼出し失敗!\n", "fbdemo_init call failed!\n"));
|
||||
gTransitionTileState = TRANS_TILE_OFF;
|
||||
} else {
|
||||
gTransitionTile.zBuffer = (u16*)gZBuffer;
|
||||
|
@ -566,11 +566,9 @@ void Play_Update(PlayState* this) {
|
|||
// fade out bgm if "continue bgm" flag is not set
|
||||
if (!(gEntranceTable[this->nextEntranceIndex + sceneLayer].field &
|
||||
ENTRANCE_INFO_CONTINUE_BGM_FLAG)) {
|
||||
// "Sound initialized. 111"
|
||||
PRINTF("\n\n\nサウンドイニシャル来ました。111");
|
||||
PRINTF(T("\n\n\nサウンドイニシャル来ました。111", "\n\n\nSound initialized. 111"));
|
||||
if ((this->transitionType < TRANS_TYPE_MAX) && !Environment_IsForcedSequenceDisabled()) {
|
||||
// "Sound initialized. 222"
|
||||
PRINTF("\n\n\nサウンドイニシャル来ました。222");
|
||||
PRINTF(T("\n\n\nサウンドイニシャル来ました。222", "\n\n\nSound initialized. 222"));
|
||||
func_800F6964(0x14);
|
||||
gSaveContext.seqId = (u8)NA_BGM_DISABLED;
|
||||
gSaveContext.natureAmbienceId = NATURE_ID_DISABLED;
|
||||
|
@ -971,11 +969,11 @@ void Play_Update(PlayState* this) {
|
|||
if (this->viewpoint != VIEWPOINT_NONE) {
|
||||
if (CHECK_BTN_ALL(input[0].press.button, BTN_CUP)) {
|
||||
if (IS_PAUSED(&this->pauseCtx)) {
|
||||
// "Changing viewpoint is prohibited due to the kaleidoscope"
|
||||
PRINTF(VT_FGCOL(CYAN) "カレイドスコープ中につき視点変更を禁止しております\n" VT_RST);
|
||||
PRINTF(VT_FGCOL(CYAN) T("カレイドスコープ中につき視点変更を禁止しております\n",
|
||||
"Changing viewpoint is prohibited due to the kaleidoscope\n") VT_RST);
|
||||
} else if (Player_InCsMode(this)) {
|
||||
// "Changing viewpoint is prohibited during the cutscene"
|
||||
PRINTF(VT_FGCOL(CYAN) "デモ中につき視点変更を禁止しております\n" VT_RST);
|
||||
PRINTF(VT_FGCOL(CYAN) T("デモ中につき視点変更を禁止しております\n",
|
||||
"Changing viewpoint is prohibited during the cutscene\n") VT_RST);
|
||||
} else if (R_SCENE_CAM_TYPE == SCENE_CAM_TYPE_FIXED_SHOP_VIEWPOINT) {
|
||||
Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale,
|
||||
&gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue