diff options
| author | Vivian Lim <[email protected]> | 2021-02-06 19:34:51 -0800 |
|---|---|---|
| committer | Vivian Lim <[email protected]> | 2021-02-06 19:34:51 -0800 |
| commit | 8b35effd3cd14843bb4d26f3566741d53fe97b76 (patch) | |
| tree | 10e3a128542960efe0b6301005b5fbc0bd95382d /ctru-rs/src/console.rs | |
| parent | tweaks to get it to attempt linking (diff) | |
| download | archived-ctru-rs-8b35effd3cd14843bb4d26f3566741d53fe97b76.tar.xz archived-ctru-rs-8b35effd3cd14843bb4d26f3566741d53fe97b76.zip | |
Support libctru 2.0
Diffstat (limited to 'ctru-rs/src/console.rs')
| -rw-r--r-- | ctru-rs/src/console.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctru-rs/src/console.rs b/ctru-rs/src/console.rs index d1a22e6..eb8df6b 100644 --- a/ctru-rs/src/console.rs +++ b/ctru-rs/src/console.rs @@ -15,7 +15,7 @@ impl Console { /// printing. pub fn init(screen: Screen) -> Self { unsafe { - let mut context = Box::new(mem::uninitialized::<PrintConsole>()); + let mut context = Box::new(PrintConsole::default()); consoleInit(screen.into(), context.as_mut()); Console { context, } } |