mirror of
https://github.com/zeldaret/oot
synced 2026-07-01 12:08:53 -04:00
Merge branch 'main' into doc/cutscene_index
This commit is contained in:
+28
-28
@@ -2036,14 +2036,14 @@ void Message_Decode(PlayState* play) {
|
||||
msgCtx->textboxBackgroundBackColorIdx = (font->msgBufWide[msgCtx->msgBufPos + 2] & 0xF00) >> 8;
|
||||
msgCtx->textboxBackgroundYOffsetIdx = (font->msgBufWide[msgCtx->msgBufPos + 2] & 0xF0) >> 4;
|
||||
msgCtx->textboxBackgroundUnkArg = font->msgBufWide[msgCtx->msgBufPos + 2] & 0xF;
|
||||
DmaMgr_RequestSync(msgCtx->textboxSegment + MESSAGE_STATIC_TEX_SIZE,
|
||||
(uintptr_t)_message_texture_staticSegmentRomStart +
|
||||
msgCtx->textboxBackgroundIdx * MESSAGE_TEXTURE_STATIC_TEX_SIZE,
|
||||
MESSAGE_TEXTURE_STATIC_TEX_SIZE);
|
||||
DmaMgr_RequestSync(msgCtx->textboxSegment + MESSAGE_STATIC_TEX_SIZE + MESSAGE_TEXTURE_STATIC_TEX_SIZE,
|
||||
(uintptr_t)_message_texture_staticSegmentRomStart +
|
||||
(msgCtx->textboxBackgroundIdx + 1) * MESSAGE_TEXTURE_STATIC_TEX_SIZE,
|
||||
MESSAGE_TEXTURE_STATIC_TEX_SIZE);
|
||||
DMA_REQUEST_SYNC(msgCtx->textboxSegment + MESSAGE_STATIC_TEX_SIZE,
|
||||
(uintptr_t)_message_texture_staticSegmentRomStart +
|
||||
msgCtx->textboxBackgroundIdx * MESSAGE_TEXTURE_STATIC_TEX_SIZE,
|
||||
MESSAGE_TEXTURE_STATIC_TEX_SIZE, "../z_message_PAL.c", UNK_LINE);
|
||||
DMA_REQUEST_SYNC(msgCtx->textboxSegment + MESSAGE_STATIC_TEX_SIZE + MESSAGE_TEXTURE_STATIC_TEX_SIZE,
|
||||
(uintptr_t)_message_texture_staticSegmentRomStart +
|
||||
(msgCtx->textboxBackgroundIdx + 1) * MESSAGE_TEXTURE_STATIC_TEX_SIZE,
|
||||
MESSAGE_TEXTURE_STATIC_TEX_SIZE, "../z_message_PAL.c", UNK_LINE);
|
||||
numLines = 2;
|
||||
msgCtx->msgBufPos += 2;
|
||||
R_TEXTBOX_BG_YPOS = R_TEXTBOX_Y + 8;
|
||||
@@ -2528,8 +2528,8 @@ void Message_OpenText(PlayState* play, u16 textId) {
|
||||
if ((B_80121220 != NULL) && (B_80121220->unk_60 != NULL) && B_80121220->unk_60(&play->msgCtx.font)) {
|
||||
|
||||
} else {
|
||||
DmaMgr_RequestSync(font->msgBuf, (uintptr_t)_staff_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength);
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_staff_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength, "../z_message_PAL.c", UNK_LINE);
|
||||
}
|
||||
#else
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_staff_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
@@ -2544,12 +2544,12 @@ void Message_OpenText(PlayState* play, u16 textId) {
|
||||
if ((B_80121220 != NULL) && (B_80121220->unk_64 != NULL) && B_80121220->unk_64(&play->msgCtx.font)) {
|
||||
|
||||
} else {
|
||||
DmaMgr_RequestSync(font->msgBuf, (uintptr_t)_jpn_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength);
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_jpn_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength, "../z_message_PAL.c", UNK_LINE);
|
||||
}
|
||||
#else
|
||||
DmaMgr_RequestSync(font->msgBuf, (uintptr_t)_jpn_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength);
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_jpn_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength, "../z_message_PAL.c", UNK_LINE);
|
||||
#endif
|
||||
} else {
|
||||
Message_FindMessageNES(play, textId);
|
||||
@@ -2558,12 +2558,12 @@ void Message_OpenText(PlayState* play, u16 textId) {
|
||||
if ((B_80121220 != NULL) && (B_80121220->unk_68 != NULL) && B_80121220->unk_68(&play->msgCtx.font)) {
|
||||
|
||||
} else {
|
||||
DmaMgr_RequestSync(font->msgBuf, (uintptr_t)_nes_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength);
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_nes_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength, "../z_message_PAL.c", UNK_LINE);
|
||||
}
|
||||
#else
|
||||
DmaMgr_RequestSync(font->msgBuf, (uintptr_t)_nes_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength);
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_nes_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength, "../z_message_PAL.c", UNK_LINE);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
@@ -2574,8 +2574,8 @@ void Message_OpenText(PlayState* play, u16 textId) {
|
||||
if ((B_80121220 != NULL) && (B_80121220->unk_64 != NULL) && B_80121220->unk_64(&play->msgCtx.font)) {
|
||||
|
||||
} else {
|
||||
DmaMgr_RequestSync(font->msgBuf, (uintptr_t)_nes_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength);
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_nes_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength, "../z_message_PAL.c", UNK_LINE);
|
||||
}
|
||||
#else
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_nes_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
@@ -2589,8 +2589,8 @@ void Message_OpenText(PlayState* play, u16 textId) {
|
||||
if ((B_80121220 != NULL) && (B_80121220->unk_64 != NULL) && B_80121220->unk_68(&play->msgCtx.font)) {
|
||||
|
||||
} else {
|
||||
DmaMgr_RequestSync(font->msgBuf, (uintptr_t)_ger_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength);
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_ger_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength, "../z_message_PAL.c", UNK_LINE);
|
||||
}
|
||||
#else
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_ger_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
@@ -2604,8 +2604,8 @@ void Message_OpenText(PlayState* play, u16 textId) {
|
||||
if ((B_80121220 != NULL) && (B_80121220->unk_64 != NULL) && B_80121220->unk_6C_PAL(&play->msgCtx.font)) {
|
||||
|
||||
} else {
|
||||
DmaMgr_RequestSync(font->msgBuf, (uintptr_t)_fra_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength);
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_fra_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
font->msgLength, "../z_message_PAL.c", UNK_LINE);
|
||||
}
|
||||
#else
|
||||
DMA_REQUEST_SYNC(font->msgBuf, (uintptr_t)_fra_message_data_staticSegmentRomStart + font->msgOffset,
|
||||
@@ -3921,7 +3921,7 @@ void Message_DrawMain(PlayState* play, Gfx** p) {
|
||||
*p = gfx;
|
||||
}
|
||||
|
||||
#if OOT_DEBUG
|
||||
#if DEBUG_FEATURES
|
||||
/**
|
||||
* If the s16 variable pointed to by `var` changes in value, a black bar and white box
|
||||
* are briefly drawn onto the screen. It can only watch one variable per build due to
|
||||
@@ -3981,13 +3981,13 @@ void Message_Draw(PlayState* play) {
|
||||
#if OOT_VERSION < GC_US
|
||||
s32 pad;
|
||||
#endif
|
||||
#if OOT_DEBUG
|
||||
#if DEBUG_FEATURES
|
||||
s16 watchVar;
|
||||
#endif
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx, "../z_message_PAL.c", 3554);
|
||||
|
||||
#if OOT_DEBUG
|
||||
#if DEBUG_FEATURES
|
||||
watchVar = gSaveContext.save.info.scarecrowLongSongSet;
|
||||
Message_DrawDebugVariableChanged(&watchVar, play->state.gfxCtx);
|
||||
if (BREG(0) != 0 && play->msgCtx.textId != 0) {
|
||||
@@ -4050,7 +4050,7 @@ void Message_Update(PlayState* play) {
|
||||
s32 pad2;
|
||||
#endif
|
||||
|
||||
#if OOT_DEBUG
|
||||
#if DEBUG_FEATURES
|
||||
if (BREG(0) != 0) {
|
||||
static u16 sMessageDebuggerTextboxCount = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user