Browse Source

Merge pull request #71 from Meziu/srv-deletion

SRV module removal
pull/72/head
Meziu 2 years ago committed by GitHub
parent
commit
10c38656ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ctru-rs/src/lib.rs
  2. 20
      ctru-rs/src/srv.rs

1
ctru-rs/src/lib.rs

@ -77,7 +77,6 @@ pub mod error;
pub mod gfx; pub mod gfx;
pub mod prelude; pub mod prelude;
pub mod services; pub mod services;
pub mod srv;
cfg_if::cfg_if! { cfg_if::cfg_if! {
if #[cfg(all(feature = "romfs", romfs_exists))] { if #[cfg(all(feature = "romfs", romfs_exists))] {

20
ctru-rs/src/srv.rs

@ -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…
Cancel
Save