Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
hytopoulos committed Nov 5, 2021
1 parent a9bb518 commit d0a7050
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 55 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ _Deparsed_XSubs.pm
*.sna
__pycache__
.vscode/settings.json
.vscode/c_cpp_properties.json
.vscode/tasks.json
17 changes: 0 additions & 17 deletions .vscode/c_cpp_properties.json

This file was deleted.

28 changes: 0 additions & 28 deletions .vscode/tasks.json

This file was deleted.

6 changes: 1 addition & 5 deletions src/room.c
Original file line number Diff line number Diff line change
Expand Up @@ -2240,17 +2240,13 @@ u32 sub_0804CD0C() {

#if defined(DEMO_USA) || defined(DEMO_JP)
void nullsub_251() {
<<<<<<< HEAD
if (gSaveHeader->saveFileId != 0 && GetInventoryValue(0x40) == 0) {
=======
#ifdef DEMO_USA
if (gUnk_02000000->saveFileId != 0 && GetInventoryValue(0x40) == 0) {
if (gSaveHeader->saveFileId != 0 && GetInventoryValue(0x40) == 0) {
#else
#ifdef DEMO_JP
if (GetInventoryValue(0x40) == 0) {
#endif
#endif
>>>>>>> upstream/master
SetTileType(0x365, 0x349, 1);
SetTileType(0x365, 0x34a, 1);
SetTileType(0x365, 0x34b, 1);
Expand Down
10 changes: 5 additions & 5 deletions src/textbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,9 @@ static void PaletteChange(TextRender* this, u32 id) {
this->_50.unk2 = temp;
}

const u8 gUnk_08107C0F[] = { 0x8, 0x1e, 0x4, 0x12, 0x0 };
const u8 gUnk_08107C14[] = { 0x8, 0x1e, 0x8, 0xFE, 0x0 };

#ifdef EU
ASM_FUNC("asm/non_matching/eu/TextBoxHandlerQuestion.inc", static void TextDispEnquiry(TextRender* ctb))
#else
Expand All @@ -508,20 +511,17 @@ static void TextDispEnquiry(TextRender* this) {
u32 doSwitch;
const u8* src;

static const u8 arr1[] = { 0x8, 0x1e, 0x4, 0x12, 0x0 };
static const u8 arr2[] = { 0x8, 0x1e, 0x8, 0xFE, 0x0 };

choiceIdx = gMessageChoices.currentChoice;
switch (gInput.newKeys) {
case START_BUTTON:
case A_BUTTON:
nextTextIdx = gMessageChoices.unk_10[choiceIdx];
if (nextTextIdx == 0) {
src = arr2;
src = gUnk_08107C14;
} else {
this->message.textIndex = nextTextIdx;
sub_0805EEB4(&this->curToken, nextTextIdx);
src = arr1;
src = gUnk_08107C0F;
}
sub_0805EF40(&this->curToken, src);
gUnk_02000040.unk_01 = gMessageChoices.currentChoice;
Expand Down

0 comments on commit d0a7050

Please sign in to comment.