Skip to content

bg_triangle.c matches (Fixes Ice Paradise Spotlights) - #221

Merged
freshollie merged 6 commits into
mainfrom
bg_tri_matches_25_09
Sep 19, 2025
Merged

freshollie merged 6 commits into
mainfrom
bg_tri_matches_25_09

Conversation

@JaceCear

Copy link
Copy Markdown
Collaborator

No description provided.

@JaceCear JaceCear changed the title (WIP) bg_triangle.c matches bg_triangle.c matches (Fixes Ice Paradise Spotlights) Sep 19, 2025
@JaceCear
JaceCear requested a review from freshollie September 19, 2025 00:23
Comment thread src/bg_triangles.c
}
}

// NOTE: Has to be below the code for matching...

@freshollie freshollie Sep 19, 2025 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Ohh I see, yeah it could go in the next file rodata?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tbh it probably doesn't make sense that this goes in the next file. Maybe it was allocated in a function but unused

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It not unlikely, but it's weird that the data survived but not the code referencing it.

Comment thread src/game/stage/camera.c
if (IS_EXTRA_STAGE(gCurrentLevel) && (gFlags & FLAGS_40)) {
gIntrTable[INTR_INDEX_VCOUNT] = gIntrTableTemplate[INTR_INDEX_VCOUNT];
gFlags &= ~FLAGS_EXECUTE_HBLANK_COPY0;
gFlags &= ~FLAGS_40;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

Comment thread src/game/title_screen.c
gFlags |= FLAGS_EXECUTE_HBLANK_CALLBACKS;
gFlags |= FLAGS_EXECUTE_HBLANK_COPY;
gHBlankCopySize = 16;
gHBlankCopySize = sizeof(BgAffineReg);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I wonder how this was working before? Or do the affine regs not change size for the widescreen hack?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah, they don't! ^^

@freshollie
freshollie merged commit 8133ce1 into main Sep 19, 2025
18 checks passed
@JaceCear
JaceCear deleted the bg_tri_matches_25_09 branch November 10, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants