Browse Source

fix chainloader

pull/161/head
Lena 11 months ago
parent
commit
0c55e1ef9b
No known key found for this signature in database
GPG Key ID: 5A940B96C2DA3683
  1. 5
      ctru-rs/src/services/apt.rs

5
ctru-rs/src/services/apt.rs

@ -146,8 +146,9 @@ impl<'a> Chainloader<'a> {
/// Checks if the chainloader is set /// Checks if the chainloader is set
#[doc(alias = "aptIsChainload")] #[doc(alias = "aptIsChainload")]
pub fn is_set(&mut self) { pub fn is_set(&self) -> bool {
//unsafe { ctru_sys::aptIsChainload() } // static funtion not exported
unsafe { (ctru_sys::envGetSystemRunFlags() & ctru_sys::RUNFLAG_APTCHAINLOAD) != 0 }
} }
/// Clears the chainloader state. /// Clears the chainloader state.

Loading…
Cancel
Save