|
|
@ -56,9 +56,6 @@ pub struct MiiSelector { |
|
|
|
#[derive(Clone, Debug)] |
|
|
|
#[derive(Clone, Debug)] |
|
|
|
pub struct SelectionResult { |
|
|
|
pub struct SelectionResult { |
|
|
|
pub mii_data: MiiData, |
|
|
|
pub mii_data: MiiData, |
|
|
|
|
|
|
|
|
|
|
|
#[deprecated] |
|
|
|
|
|
|
|
pub is_mii_selected: bool, |
|
|
|
|
|
|
|
pub mii_type: MiiType, |
|
|
|
pub mii_type: MiiType, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -67,7 +64,6 @@ pub struct SelectionResult { |
|
|
|
pub enum LaunchError { |
|
|
|
pub enum LaunchError { |
|
|
|
/// The selected Mii's data is corrupt in some way
|
|
|
|
/// The selected Mii's data is corrupt in some way
|
|
|
|
InvalidChecksum, |
|
|
|
InvalidChecksum, |
|
|
|
|
|
|
|
|
|
|
|
/// Either the user cancelled the selection (see [Options::MII_SELECTOR_CANCEL]), or no valid Miis were available to select
|
|
|
|
/// Either the user cancelled the selection (see [Options::MII_SELECTOR_CANCEL]), or no valid Miis were available to select
|
|
|
|
NoMiiSelected, |
|
|
|
NoMiiSelected, |
|
|
|
} |
|
|
|
} |
|
|
@ -178,7 +174,6 @@ impl From<ctru_sys::MiiSelectorReturn> for SelectionResult { |
|
|
|
|
|
|
|
|
|
|
|
SelectionResult { |
|
|
|
SelectionResult { |
|
|
|
mii_data: raw_mii_data.into(), |
|
|
|
mii_data: raw_mii_data.into(), |
|
|
|
is_mii_selected: ret.no_mii_selected == 0, |
|
|
|
|
|
|
|
mii_type: if ret.guest_mii_index != 0xFFFFFFFF { |
|
|
|
mii_type: if ret.guest_mii_index != 0xFFFFFFFF { |
|
|
|
MiiType::Guest { |
|
|
|
MiiType::Guest { |
|
|
|
index: ret.guest_mii_index, |
|
|
|
index: ret.guest_mii_index, |
|
|
|