Browse Source
The SD card is automatically mounted by libctru on startup, so this isn't needed anymore.pull/14/head
AzureMarker
3 years ago
2 changed files with 0 additions and 22 deletions
@ -1,20 +0,0 @@ |
|||||||
pub struct Sdmc(()); |
|
||||||
|
|
||||||
impl Sdmc { |
|
||||||
pub fn init() -> crate::Result<Sdmc> { |
|
||||||
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() }; |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue