Skip to content

Implement Mii Selector applet #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Nov 9, 2022
Merged

Implement Mii Selector applet #78

merged 27 commits into from
Nov 9, 2022

Conversation

Techie-Pi
Copy link
Member

I've implemented the Mii Selector applet, I have yet to add documentation, but I would like to see your opinions on the API.
Specially around the creation and usage of the enums MiiConfigIndex and MiiType.

@Techie-Pi
Copy link
Member Author

Techie-Pi commented Oct 20, 2022

Also, out of curiosity, why is MiiData an opaque type?
Nevermind, just saw the issue, that's actually sad tbh

@Techie-Pi
Copy link
Member Author

Techie-Pi commented Oct 21, 2022

I've been researching, and the representation of the MiiData given by the 3DS doesn't change at all and is documented. The purpose of libctru's MiiData is to imitate the representation so that the struct is generated directly from the 3DS' MiiData.

Instead of that, we could parse the raw data to a Rust-compatible struct. I'll do some testing

@Techie-Pi
Copy link
Member Author

Techie-Pi commented Oct 21, 2022

Looks like it is possible, and quite simple tbh, maybe I could also add this to the PR.
Edit: Done... that was easier than what I had thought... I'll clean-up the code, fix a few things, and I'll incorporate the code into the PR

@Techie-Pi Techie-Pi requested review from Meziu and AzureMarker and removed request for Meziu and AzureMarker October 24, 2022 01:05
@Techie-Pi
Copy link
Member Author

(For some reason I can't request multiple reviews at the same time /shrug)

@Meziu Meziu requested a review from AzureMarker October 24, 2022 12:20
@Techie-Pi
Copy link
Member Author

I've squashed some commits (mostly docs and cargo fmt/clippy)

Copy link
Member

@Meziu Meziu left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Techie-Pi Techie-Pi requested a review from AzureMarker November 2, 2022 20:21
Copy link
Member

@ian-h-chamberlain ian-h-chamberlain left a comment

Choose a reason for hiding this comment

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

Sorry I meant to review this a while ago, but finally got a chance to take a look and it seems pretty cool!

Some of ctru::MiiData might be worth documenting further, if we're going to maintain a totally separate struct vs the ctru_sys::MiiData, but I think this is good to start. There's lots of documentation stuff that needs to be done across the board so I don't think it should keep this from merging as-is.

@Techie-Pi
Copy link
Member Author

Techie-Pi commented Nov 3, 2022

After current concerns about this PR are resolved, I plan on adding (at least) some basic documentation (and maybe references to the 3dbrew wiki) before merging, though I think the best thing would be to merge this PR with basic documentation and add more detailed documentation in a follow-up PR (I'm not a native English speaker, so I may need help in the follow-up PR, which may take some time to make because of that :p)

@Techie-Pi
Copy link
Member Author

Is there anything that should be documented in this PR instead of the follow-up? Or is this ready to merge?

@Meziu
Copy link
Member

Meziu commented Nov 9, 2022

Is there anything that should be documented in this PR instead of the follow-up? Or is this ready to merge?

I believe it’s fine for now. PR anything you want to add.

@Meziu Meziu merged commit 4e22166 into rust3ds:master Nov 9, 2022
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.

4 participants