Browse Source

Apply suggestions (V)

pull/63/head
TechiePi 2 years ago
parent
commit
c130661da2
  1. 4
      ctru-rs/src/services/cfgu.rs

4
ctru-rs/src/services/cfgu.rs

@ -17,7 +17,7 @@ pub enum Region { @@ -17,7 +17,7 @@ pub enum Region {
#[derive(Copy, Clone, Debug)]
#[repr(u32)]
pub enum Language {
Japan = ctru_sys::CFG_LANGUAGE_JP,
Japanese = ctru_sys::CFG_LANGUAGE_JP,
English = ctru_sys::CFG_LANGUAGE_EN,
French = ctru_sys::CFG_LANGUAGE_FR,
German = ctru_sys::CFG_LANGUAGE_DE,
@ -178,7 +178,7 @@ impl TryFrom<u8> for Language { @@ -178,7 +178,7 @@ impl TryFrom<u8> for Language {
fn try_from(value: u8) -> Result<Self, Self::Error> {
match value as u32 {
ctru_sys::CFG_LANGUAGE_JP => Ok(Language::Japan),
ctru_sys::CFG_LANGUAGE_JP => Ok(Language::Japanese),
ctru_sys::CFG_LANGUAGE_EN => Ok(Language::English),
ctru_sys::CFG_LANGUAGE_FR => Ok(Language::French),
ctru_sys::CFG_LANGUAGE_DE => Ok(Language::German),

Loading…
Cancel
Save