diff --git a/ctru-rs/examples/mii-selector.rs b/ctru-rs/examples/mii-selector.rs index 363a034..2fc3d4f 100644 --- a/ctru-rs/examples/mii-selector.rs +++ b/ctru-rs/examples/mii-selector.rs @@ -10,13 +10,13 @@ fn main() { let _console = Console::new(gfx.top_screen.borrow_mut()); let mut mii_selector = MiiSelector::new(); + mii_selector.set_options(Options::MII_SELECTOR_CANCEL); mii_selector.set_initial_index(3); mii_selector.blacklist_user_mii(0.into()); mii_selector.set_title("Great Mii Selector!"); match mii_selector.launch() { Ok(result) => { - println!("Is Mii selected?: {:?}", result.is_mii_selected); println!("Mii type: {:?}", result.mii_type); println!("Name: {:?}", result.mii_data.name); println!("Author: {:?}", result.mii_data.author_name); diff --git a/ctru-rs/src/applets/mii_selector.rs b/ctru-rs/src/applets/mii_selector.rs index 4d89288..ca6f597 100644 --- a/ctru-rs/src/applets/mii_selector.rs +++ b/ctru-rs/src/applets/mii_selector.rs @@ -65,7 +65,10 @@ pub struct SelectionResult { /// Error type for the Mii selector #[derive(Copy, Clone, Debug, Eq, PartialEq)] pub enum LaunchError { + /// The selected Mii's data is corrupt in some way InvalidChecksum, + + /// Either the user cancelled the selection (see [Options::MII_SELECTOR_CANCEL]), or no valid Miis were available to select NoMiiSelected, }