@ -165,7 +165,7 @@ impl<'a> FileExplorer<'a> {
fn get_input_and_run(&mut self, action: impl FnOnce(&mut Self, String)) {
let mut keyboard = SoftwareKeyboard::default();
match keyboard.get_string(2048) {
match keyboard.get_string(2048, &self.apt, &self.gfx) {
Ok((path, Button::Right)) => {
// Clicked "OK".
action(self, path);
@ -21,7 +21,7 @@ fn main() {
mii_selector.set_title("Great Mii Selector!");
// Launch the Mii Selector and use its result to print the selected Mii's information.
match mii_selector.launch() {
match mii_selector.launch(&apt, &gfx) {
Ok(result) => {
println!("Mii type: {:?}", result.mii_type);
println!("Name: {:?}", result.mii_data.name);
@ -710,6 +710,12 @@ impl Default for SoftwareKeyboard {
}
impl Default for ParentalLock {
fn default() -> Self {
ParentalLock::new()
impl Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {