Browse Source

Merge pull request #30 from AzureMarker/tweak/file-explorer-improvements

pull/33/head
Meziu 3 years ago committed by GitHub
parent
commit
038ed7b248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ctru-rs/Cargo.toml
  2. 2
      ctru-rs/examples/file-explorer.rs
  3. 0
      ctru-rs/examples/romfs/test-file.txt

3
ctru-rs/Cargo.toml

@ -30,3 +30,6 @@ time = "0.3.7"
[features] [features]
default = ["romfs"] default = ["romfs"]
romfs = [] romfs = []
[package.metadata.cargo-3ds]
romfs_dir = "examples/romfs"

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

@ -57,7 +57,7 @@ impl<'a> FileExplorer<'a> {
if input.contains(KeyPad::KEY_START) { if input.contains(KeyPad::KEY_START) {
break; break;
} else if input.contains(KeyPad::KEY_B) { } else if input.contains(KeyPad::KEY_B) && self.path.components().count() > 1 {
self.path.pop(); self.path.pop();
self.console.clear(); self.console.clear();
self.print_menu(); self.print_menu();

0
ctru-rs/romfs/test-file.txt → ctru-rs/examples/romfs/test-file.txt

Loading…
Cancel
Save