Skip to content

Decompile overlay_12_02265E28#421

Open
Phlosioneer wants to merge 3 commits intopret:masterfrom
Phlosioneer:decompile-overlay-12-02265E28
Open

Decompile overlay_12_02265E28#421
Phlosioneer wants to merge 3 commits intopret:masterfrom
Phlosioneer:decompile-overlay-12-02265E28

Conversation

@Phlosioneer
Copy link

Fully decompiled this file. All functions and data match. The file seems self contained enough to leave separate, rather than joining with the neighboring C files, though a more careful analysis of UnkBattleSystemSub17C-related functions might change that evaluation.

I didn't spend any time trying to make meaningful names for the functions. There's too many unknowns still, and I'm not sure how to find the sprite referenced by the given resource id's to identify what's being animated.

With assistance from @assamow figuring out the __attribute__
requirement.
Copy link
Collaborator

@adrienntindall adrienntindall left a comment

Choose a reason for hiding this comment

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

Mostly fine, just a few nitpicks

Assume that each comment is applied everywhere throughout the file and not just that one instance

}

void ov12_02265F34(UnkBattleSystemSub17C *arg0) {
SpriteSystem *spriteSystem; // r5
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can remove the decomp comment


void ov12_02265F34(UnkBattleSystemSub17C *arg0) {
SpriteSystem *spriteSystem; // r5
ManagedSprite *managed;
Copy link
Collaborator

Choose a reason for hiding this comment

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

managed -> managedSprite for repo consistency

}
}

void ov12_02265FD4(UnkBattleSystemSub17C *arg0, BattleSystem *bsys, s32 unk8, s32 unk9) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

bsys -> battleSystem

I believe the actual struct element is already being changed in #390 but I really need to suck it up and fix all the merge errors for that one

}

void ov12_02265F7C(UnkBattleSystemSub17C *arg0) {
SpriteManager *manager = BattleSystem_GetGfxHandler(arg0->bsys);
Copy link
Collaborator

Choose a reason for hiding this comment

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

manager -> spriteManager

void ov12_02265F7C(UnkBattleSystemSub17C *arg0);

static const u16 ov12_0226E0A0[] = {
0x88,
Copy link
Collaborator

Choose a reason for hiding this comment

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

hex -> decimal

@github-actions
Copy link

This pull request has had no activity for 60 days and will be marked stale. If there is no further activity, it will be closed in 30 days.

@github-actions github-actions bot added the stale label Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants