Andrea Ciliberti
2 years ago
2 changed files with 0 additions and 21 deletions
@ -1,20 +0,0 @@
@@ -1,20 +0,0 @@
|
||||
pub struct Srv(()); |
||||
|
||||
impl Srv { |
||||
pub fn init() -> crate::Result<Srv> { |
||||
unsafe { |
||||
let r = ctru_sys::srvInit(); |
||||
if r < 0 { |
||||
Err(r.into()) |
||||
} else { |
||||
Ok(Srv(())) |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
impl Drop for Srv { |
||||
fn drop(&mut self) { |
||||
unsafe { ctru_sys::srvExit() }; |
||||
} |
||||
} |
Loading…
Reference in new issue