From 149ab391d56e7edb462ff9404c87e49c6ee68253 Mon Sep 17 00:00:00 2001 From: TechiePi Date: Sun, 10 Jul 2022 22:11:38 +0200 Subject: [PATCH] Apply suggestions (II) --- ctru-rs/src/services/cfgu.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ctru-rs/src/services/cfgu.rs b/ctru-rs/src/services/cfgu.rs index 83b78d8..9d794cb 100644 --- a/ctru-rs/src/services/cfgu.rs +++ b/ctru-rs/src/services/cfgu.rs @@ -133,17 +133,17 @@ impl Cfgu { } } - /// Check if the console is 2DS-like (2DS, New2DS, New2DSXL) - pub fn is_2ds_like(&self) -> crate::Result { - let mut is_2ds_like: u8 = 0; - let is_2ds_like_pointer: *mut u8 = &mut is_2ds_like; + /// Check if the console is from the 2DS family (2DS, New2DS, New2DSXL) + pub fn is_2ds_family(&self) -> crate::Result { + let mut is_2ds_family: u8 = 0; + let is_2ds_family_pointer: *mut u8 = &mut is_2ds_family; unsafe { - let r = ctru_sys::CFGU_GetModelNintendo2DS(is_2ds_like_pointer); + let r = ctru_sys::CFGU_GetModelNintendo2DS(is_2ds_family_pointer); if r < 0 { Err(r.into()) } else { - Ok(is_2ds_like < 1) + Ok(is_2ds_family < 1) } } }