Browse Source

Fixed file-explorer example (Console usage)

pull/86/head
AzureMarker 1 year ago
parent
commit
08b4c37d0d
  1. 3
      ctru-rs/examples/file-explorer.rs

3
ctru-rs/examples/file-explorer.rs

@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
use ctru::applets::swkbd::{Button, SoftwareKeyboard};
use ctru::prelude::*;
use ctru::services::gfx::TopScreen;
use std::fs::DirEntry;
use std::os::horizon::fs::MetadataExt;
use std::path::{Path, PathBuf};
@ -26,7 +27,7 @@ struct FileExplorer<'a> { @@ -26,7 +27,7 @@ struct FileExplorer<'a> {
apt: &'a Apt,
hid: &'a mut Hid,
gfx: &'a Gfx,
console: Console<'a>,
console: Console<'a, TopScreen>,
path: PathBuf,
entries: Vec<DirEntry>,
running: bool,

Loading…
Cancel
Save