|
|
@ -32,7 +32,8 @@ impl Ac { |
|
|
|
#[doc(alias = "acInit")] |
|
|
|
#[doc(alias = "acInit")] |
|
|
|
pub fn new() -> crate::Result<Ac> { |
|
|
|
pub fn new() -> crate::Result<Ac> { |
|
|
|
Ok(Ac { |
|
|
|
Ok(Ac { |
|
|
|
_service_handler: ServiceReference::new(&AC_ACTIVE,
|
|
|
|
_service_handler: ServiceReference::new( |
|
|
|
|
|
|
|
&AC_ACTIVE, |
|
|
|
|| { |
|
|
|
|| { |
|
|
|
ResultCode(unsafe { ctru_sys::acInit() })?; |
|
|
|
ResultCode(unsafe { ctru_sys::acInit() })?; |
|
|
|
|
|
|
|
|
|
|
@ -40,7 +41,8 @@ impl Ac { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|| unsafe { |
|
|
|
|| unsafe { |
|
|
|
ctru_sys::acExit(); |
|
|
|
ctru_sys::acExit(); |
|
|
|
},)? |
|
|
|
}, |
|
|
|
|
|
|
|
)?, |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|