Skip to content

decomp func_800C64D0 - #44

Merged
ser-pounce merged 6 commits into
ser-pounce:mainfrom
ladm99:main
Jul 30, 2026
Merged

decomp func_800C64D0#44
ser-pounce merged 6 commits into
ser-pounce:mainfrom
ladm99:main

Conversation

@ladm99

@ladm99 ladm99 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

decompiled func_800C64D0 in src/BATTLE/BATTLE.PRG/5BF94.c with some help from ser-pounce. Also updated src/BATTLE/BATTLE.PRG/146C.c to use the updated data types in the function declaration

@ser-pounce ser-pounce left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the PR! The call to func_800C64D0 inside func_8007A824 also needs addressing as it issues a couple of warnings, let me know if you need anything.

@ladm99

ladm99 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Think I fixed the issue. Please let me know if I didn't.

@ser-pounce ser-pounce left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

And you can change the declaration of D_800F1870 from int to void*.

Sorry if I'm being pedantic with the change requests, your submission is perfectly fine already, I'm just trying to save us both some time down the line. Basically, if you need to introduce a cast, it's quite likely that the thing your casting has the wrong type; this one is very straightforward because it's only used here, if you encounter something more complex don't worry about it if it's too much and leave the cast. Thanks!

Comment thread src/BATTLE/BATTLE.PRG/146C.c Outdated
ladm99 and others added 2 commits July 29, 2026 23:26
Co-authored-by: ser-pounce <ser-pounce@users.noreply.github.com>
@ladm99

ladm99 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Don't worry about being pedantic, I really appreciate the feedback

@ser-pounce
ser-pounce merged commit 7e51e06 into ser-pounce:main Jul 30, 2026

@ser-pounce ser-pounce left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Perfect, ty!

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