From 08b4c37d0d2a74d0d2f81d8cecc689ceca89b5b2 Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Sun, 24 Dec 2023 13:12:07 -0500 Subject: [PATCH] Fixed file-explorer example (Console usage) --- ctru-rs/examples/file-explorer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ctru-rs/examples/file-explorer.rs b/ctru-rs/examples/file-explorer.rs index 3ad37c9..0c2b595 100644 --- a/ctru-rs/examples/file-explorer.rs +++ b/ctru-rs/examples/file-explorer.rs @@ -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> { apt: &'a Apt, hid: &'a mut Hid, gfx: &'a Gfx, - console: Console<'a>, + console: Console<'a, TopScreen>, path: PathBuf, entries: Vec, running: bool,