diff --git a/ctru-rs/src/lib.rs b/ctru-rs/src/lib.rs index a323060..6669c60 100644 --- a/ctru-rs/src/lib.rs +++ b/ctru-rs/src/lib.rs @@ -33,7 +33,6 @@ pub mod applets; pub mod console; pub mod error; pub mod gfx; -pub mod sdmc; pub mod services; pub mod srv; pub mod thread; @@ -57,5 +56,4 @@ pub mod romfs { pub use crate::error::{Error, Result}; pub use crate::gfx::Gfx; -pub use crate::sdmc::Sdmc; pub use crate::srv::Srv; diff --git a/ctru-rs/src/sdmc.rs b/ctru-rs/src/sdmc.rs deleted file mode 100644 index eaef331..0000000 --- a/ctru-rs/src/sdmc.rs +++ /dev/null @@ -1,20 +0,0 @@ -pub struct Sdmc(()); - -impl Sdmc { - pub fn init() -> crate::Result { - unsafe { - let r = ctru_sys::archiveMountSdmc(); - if r < 0 { - Err(r.into()) - } else { - Ok(Sdmc(())) - } - } - } -} - -impl Drop for Sdmc { - fn drop(&mut self) { - unsafe { ctru_sys::archiveUnmountAll() }; - } -}