aboutsummaryrefslogtreecommitdiff
path: root/src/sdmc.rs
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-01-21 21:11:02 -0700
committerFenrir <[email protected]>2017-01-21 21:11:02 -0700
commitdffce57257b648873354af585855cc6cc8544422 (patch)
tree16c599449cf2b0bbeb957222ee11345caf27e551 /src/sdmc.rs
parentWe stdlib now (diff)
downloadctru-rs-dffce57257b648873354af585855cc6cc8544422.tar.xz
ctru-rs-dffce57257b648873354af585855cc6cc8544422.zip
Bring in all the crates
Diffstat (limited to 'src/sdmc.rs')
-rw-r--r--src/sdmc.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/sdmc.rs b/src/sdmc.rs
deleted file mode 100644
index 8698f80..0000000
--- a/src/sdmc.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-use std::marker::PhantomData;
-
-use libctru::sdmc::*;
-
-pub struct Sdmc {
- pd: PhantomData<i32>,
-}
-
-impl Sdmc {
- pub fn init() -> Result<Sdmc, i32> {
- unsafe {
- let r = sdmcInit();
- if r < 0 {
- Err(r)
- } else {
- Ok(Sdmc { pd: PhantomData })
- }
- }
- }
-}
-
-impl Drop for Sdmc {
- fn drop(&mut self) {
- unsafe { sdmcExit() };
- }
-}