Skip to content

Fixes for Mii struct and FRD_GetFriendKeyList#578

Merged
fincs merged 1 commit into
devkitPro:masterfrom
ZeroSkill1:mii_friends_fixes
Jul 25, 2025
Merged

Fixes for Mii struct and FRD_GetFriendKeyList#578
fincs merged 1 commit into
devkitPro:masterfrom
ZeroSkill1:mii_friends_fixes

Conversation

@ZeroSkill1

@ZeroSkill1 ZeroSkill1 commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

This commit introduced a regression which caused users to see invalid data when accessing the FriendMii struct. This was caused by the presence of extra fields at the beginning of the struct that are not actually part of the data returned by the friends sysmodule.

The changes made here:

  • Move CFLStoreData from act.h to mii.h as it turns out this struct is shared across many titles and sysmodules;
  • Define FriendMii as CFLStoreData so that commands taking in FriendMii or returning structs that contain Mii data can be accessed properly.

In addition, through my own testing I have discovered that FRD_GetFriendKeyList was passing invalid static buffer descriptors, causing a crash whenever this command was used, so I have corrected this as well.

@fincs fincs merged commit e09a49a into devkitPro:master Jul 25, 2025
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