mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-12 19:04:38 +00:00
Write about IDO and EGCS in compilers.md (#2432)
* Write about IDO and EGCS in compilers.md * Fix typo * Fix another typo * Apply suggestions from code review Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> --------- Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
This commit is contained in:
parent
284ecb114e
commit
11b7bf2914
4 changed files with 66 additions and 3 deletions
|
@ -2570,7 +2570,7 @@ void Actor_Draw(PlayState* play, Actor* actor) {
|
|||
gSPSegment(POLY_OPA_DISP++, 0x06, play->objectCtx.slots[actor->objectSlot].segment);
|
||||
gSPSegment(POLY_XLU_DISP++, 0x06, play->objectCtx.slots[actor->objectSlot].segment);
|
||||
#else
|
||||
// Workaround for EGCS bug
|
||||
// Workaround for EGCS internal compiler error (see docs/compilers.md)
|
||||
slots = play->objectCtx.slots;
|
||||
gSPSegment(POLY_OPA_DISP++, 0x06, slots[actor->objectSlot].segment);
|
||||
gSPSegment(POLY_XLU_DISP++, 0x06, slots[actor->objectSlot].segment);
|
||||
|
|
|
@ -119,7 +119,7 @@ void Font_LoadOrderedFont(Font* font) {
|
|||
|
||||
PRINTF("msg_data=%x, msg_data0=%x jj=%x\n", font->msgOffset, font->msgLength, len);
|
||||
|
||||
// Workaround for EGCS bug
|
||||
// Workaround for EGCS internal compiler error (see docs/compilers.md)
|
||||
msgBufWide = font->msgBufWide;
|
||||
fontBufIndex = 0;
|
||||
for (codePointIndex = 0; msgBufWide[codePointIndex] != MESSAGE_WIDE_END; codePointIndex++) {
|
||||
|
|
|
@ -853,7 +853,7 @@ void Sram_InitSave(FileSelectState* fileSelect, SramContext* sramCtx) {
|
|||
#if !PLATFORM_IQUE
|
||||
gSaveContext.save.info.playerData.playerName[offset] = fileSelect->fileNames[fileSelect->buttonIndex][offset];
|
||||
#else
|
||||
// Workaround for EGCS bug
|
||||
// Workaround for EGCS internal compiler error (see docs/compilers.md)
|
||||
u8* fileName = fileSelect->fileNames[fileSelect->buttonIndex];
|
||||
|
||||
gSaveContext.save.info.playerData.playerName[offset] = fileName[offset];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue