pub struct Cfgu(/* private fields */);
Expand description
Handle to the System Configuration service.
Implementations§
source§impl Cfgu
impl Cfgu
sourcepub fn region(&self) -> Result<Region>
pub fn region(&self) -> Result<Region>
Returns the console’s region from the system’s secure info.
§Example
use ctru::services::cfgu::Cfgu;
let cfgu = Cfgu::new()?;
let region = cfgu.region()?;
sourcepub fn model(&self) -> Result<SystemModel>
pub fn model(&self) -> Result<SystemModel>
Returns the console’s model.
§Example
use ctru::services::cfgu::Cfgu;
let cfgu = Cfgu::new()?;
let model = cfgu.model()?;
sourcepub fn language(&self) -> Result<Language>
pub fn language(&self) -> Result<Language>
Returns the system language set for the console.
§Example
use ctru::services::cfgu::Cfgu;
let cfgu = Cfgu::new()?;
let language = cfgu.language()?;
sourcepub fn is_nfc_supported(&self) -> Result<bool>
pub fn is_nfc_supported(&self) -> Result<bool>
Check if NFC is supported by the console.
§Example
use ctru::services::cfgu::Cfgu;
let cfgu = Cfgu::new()?;
if cfgu.is_nfc_supported()? {
println!("NFC is available!");
}