diff options
| author | Fenrir <[email protected]> | 2017-11-18 17:47:38 -0700 |
|---|---|---|
| committer | FenrirWolf <[email protected]> | 2017-11-18 18:20:21 -0700 |
| commit | 9f5d769afabc3bcaddf56568aced0df74a5fced6 (patch) | |
| tree | 41013f073f308aec847f143277904dd930008803 /ctru-rs/src/console.rs | |
| parent | Merge pull request #44 from FenrirWolf/panic-unwind (diff) | |
| download | archived-ctru-rs-9f5d769afabc3bcaddf56568aced0df74a5fced6.tar.xz archived-ctru-rs-9f5d769afabc3bcaddf56568aced0df74a5fced6.zip | |
Update bindings for libctru v1.4.0
Diffstat (limited to 'ctru-rs/src/console.rs')
| -rw-r--r-- | ctru-rs/src/console.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctru-rs/src/console.rs b/ctru-rs/src/console.rs index 2a1c872..040096a 100644 --- a/ctru-rs/src/console.rs +++ b/ctru-rs/src/console.rs @@ -10,8 +10,8 @@ pub struct Console { impl Console { pub fn init(screen: Screen) -> Self { unsafe { - let ret = *(::libctru::consoleInit(screen.into(), ptr::null_mut())); - Console { context: ret } + let context = ptr::read(::libctru::consoleInit(screen.into(), ptr::null_mut())); + Console { context, } } } |