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

Loading…
Cancel
Save