|
|
@ -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.
|
|
|
|