Takes Ganondor's text & hint from CustomMessageTable
This commit is contained in:
@@ -1478,14 +1478,12 @@ extern "C" CustomMessageEntry Randomizer_CopyAltarMessage() {
|
|||||||
: CustomMessage::Instance->RetrieveMessage(Randomizer::hintMessageTableID, 0x7040);
|
: CustomMessage::Instance->RetrieveMessage(Randomizer::hintMessageTableID, 0x7040);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" int Randomizer_CopyGanonText(char* buffer, const int maxBufferSize) {
|
extern "C" CustomMessageEntry Randomizer_CopyGanonText() {
|
||||||
const std::string& ganonText = OTRGlobals::Instance->gRandomizer->GetGanonText();
|
return CustomMessage::Instance->RetrieveMessage(Randomizer::hintMessageTableID, 0x70CD);
|
||||||
return CopyStringToCharBuffer(ganonText, buffer, maxBufferSize);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" int Randomizer_CopyGanonHintText(char* buffer, const int maxBufferSize) {
|
extern "C" CustomMessageEntry Randomizer_CopyGanonHintText() {
|
||||||
const std::string& ganonText = OTRGlobals::Instance->gRandomizer->GetGanonHintText();
|
return CustomMessage::Instance->RetrieveMessage(Randomizer::hintMessageTableID, 0x70CC);
|
||||||
return CopyStringToCharBuffer(ganonText, buffer, maxBufferSize);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" CustomMessageEntry Randomizer_CopyHintFromCheck(RandomizerCheck check) {
|
extern "C" CustomMessageEntry Randomizer_CopyHintFromCheck(RandomizerCheck check) {
|
||||||
@@ -1550,6 +1548,12 @@ extern "C" int CustomMessage_RetrieveIfExists(GlobalContext* globalCtx) {
|
|||||||
} else if (textId == 0x7040 || textId == 0x7088) {
|
} else if (textId == 0x7040 || textId == 0x7088) {
|
||||||
// rando hints at altar
|
// rando hints at altar
|
||||||
messageEntry = Randomizer_CopyAltarMessage();
|
messageEntry = Randomizer_CopyAltarMessage();
|
||||||
|
} else if (gSaveContext.n64ddFlag && textId == 0x70CC) {
|
||||||
|
if (INV_CONTENT(ITEM_ARROW_LIGHT) == ITEM_ARROW_LIGHT) {
|
||||||
|
messageEntry = Randomizer_CopyGanonText();
|
||||||
|
} else {
|
||||||
|
messageEntry = Randomizer_CopyGanonHintText();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (textId == 0x00B4 || textId == 0x00B5) {
|
if (textId == 0x00B4 || textId == 0x00B5) {
|
||||||
|
|||||||
@@ -1677,12 +1677,6 @@ void Message_OpenText(GlobalContext* globalCtx, u16 textId) {
|
|||||||
Message_FindMessage(globalCtx, textId);
|
Message_FindMessage(globalCtx, textId);
|
||||||
if (gSaveContext.n64ddFlag && (textId == 0x10A2 || textId == 0x10DC || textId == 0x10DD)) {
|
if (gSaveContext.n64ddFlag && (textId == 0x10A2 || textId == 0x10DC || textId == 0x10DD)) {
|
||||||
msgCtx->msgLength = font->msgLength = CopyScrubMessage(textId, font->msgBuf, sizeof(font->msgBuf));
|
msgCtx->msgLength = font->msgLength = CopyScrubMessage(textId, font->msgBuf, sizeof(font->msgBuf));
|
||||||
} else if (gSaveContext.n64ddFlag && textId == 0x70CC) {
|
|
||||||
if (INV_CONTENT(ITEM_ARROW_LIGHT) == ITEM_ARROW_LIGHT) {
|
|
||||||
msgCtx->msgLength = font->msgLength = Randomizer_CopyGanonText(font->msgBuf, sizeof(font->msgBuf));
|
|
||||||
} else {
|
|
||||||
msgCtx->msgLength = font->msgLength = Randomizer_CopyGanonHintText(font->msgBuf, sizeof(font->msgBuf));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
msgCtx->msgLength = font->msgLength;
|
msgCtx->msgLength = font->msgLength;
|
||||||
char* src = (uintptr_t)font->msgOffset;
|
char* src = (uintptr_t)font->msgOffset;
|
||||||
|
|||||||
Reference in New Issue
Block a user