Skip to content

Duskull, Kecleon, Kangaskhan Overlays + Peripherals#404

Open
HappyLappy1 wants to merge 127 commits into
UsernameFodder:masterfrom
HappyLappy1:master
Open

Duskull, Kecleon, Kangaskhan Overlays + Peripherals#404
HappyLappy1 wants to merge 127 commits into
UsernameFodder:masterfrom
HappyLappy1:master

Conversation

@HappyLappy1

Copy link
Copy Markdown
Contributor

No description provided.

HappyLappy1 and others added 30 commits May 31, 2026 00:37
Tests are passing on my end. Somehow I have those now?
The headers look like a nightmare to properly format without actual clang. So I'll pass on that for now.
It probably isn't hard to run clang on the header files with the python script, but I can't really be bothered...
Co-authored-by: UsernameFodder <93669634+UsernameFodder@users.noreply.github.com>
Co-authored-by: UsernameFodder <93669634+UsernameFodder@users.noreply.github.com>

@assidion2 assidion2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can also probably document the inner function FUN_0200d398 as MaybeGetFormattedItemName

params 1-3: same as in your functions
param 4: should_color_name (bool)
param 5: space_align_non_sticky_items (bool, whether to add an extra space before non sticky items to align them with sticky ones)

Comment thread symbols/overlay11.yml
Comment thread symbols/overlay15.yml Outdated
Comment thread headers/functions/overlay15.h
Comment thread headers/types/ground_mode/ground_mode.h Outdated
Comment thread symbols/overlay11.yml
Comment thread symbols/overlay11.yml
address:
EU: 0x23258EC
length:
EU: 0x4

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.

bool has a length of 1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If the bool is loaded as a word, should I just make it an int? It's clearly only ever zero or one. Is there a "wide bool" type I could use instead?

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.

In that case, just using an int is fine

Comment thread symbols/overlay11.yml
address:
EU: 0x23258F4
length:
EU: 0x4

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.

If bool,

Suggested change
EU: 0x4
EU: 0x1

Comment thread symbols/overlay23.yml
Exclusively passed into MaybeGetUncoloredFormattedItemName and MaybeGetColoredFormattedItemName.
The exact purpose of this struct is unknown, but the only "true" bool in the table is for "Other" items.

type: bool

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.

This should be an array?

Comment thread symbols/arm9.yml
Allocates a currently unknown struct of size 0x410 at UNK_STORAGE_STRUCT_0X410_PTR. May be a state case structure of some kind.
Likely used by Kangaskhan Storage, or some other storage interaction menu.

r0: undefined2

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.

Header says this is a pointer? Which is right?

Comment thread symbols/overlay11.yml
description: |-
Seems to handle loading overlay 22 for the kecleon brothers shop. Is used by both colors of Kecleon.

r0: 1 for purple kecleon, 0 for green kecleon.

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.

If this is confidently known, give the param a name in the header

Comment thread symbols/overlay11.yml
description: |-
Seems to handle loading overlay 23 for Kangaskhan storage, as well as Kangaskhan rock storage.

r0: 2 for kangaskhan rock, 0 otherwise?

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.

The header says this is a bool, but a bool can't take the value 2. So is it an int instead?

Comment thread symbols/overlay22.yml

r0: unused
r1: int
r2: uint

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.

The header says this is a uint32_t*, which is right?

Comment thread symbols/overlay22.yml

r0: unused
r1: int
r2: uint

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.

The header says this is a uint32_t*, which is right?

Comment thread symbols/overlay23.yml
Does nothing if "KANGASKHAN_STORAGE_MENU_PTR->is_kanga_rock" is true.

r0: window_id
r1: preprocessor_flags pointer

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.

Header says this is a value-type struct preprocessor_flags. Which is right? I would assume a pointer?

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.

3 participants