Browse Source

Update example for Console API change

pull/23/head
Ian Chamberlain 3 years ago
parent
commit
03678e0e95
No known key found for this signature in database
GPG Key ID: AE5484D09405AA60
  1. 6
      ctru-rs/examples/time_rtc.rs

6
ctru-rs/examples/time_rtc.rs

@ -1,7 +1,5 @@ @@ -1,7 +1,5 @@
use std::ptr;
use ctru::console::Console;
use ctru::gfx::{Gfx, Screen};
use ctru::gfx::Gfx;
use ctru::services::apt::Apt;
use ctru::services::hid::{Hid, KeyPad};
@ -70,7 +68,7 @@ fn main() { @@ -70,7 +68,7 @@ fn main() {
let hid = Hid::init().expect("Couldn't obtain HID controller");
let apt = Apt::init().expect("Couldn't obtain APT controller");
let _console = Console::init(&gfx, Screen::Top);
let _console = Console::init(gfx.top_screen.borrow_mut());
print!("\x1b[30;16HPress Start to exit.");

Loading…
Cancel
Save