From 650ba42b35f96950fd5761ed31d05c9a5f6f6144 Mon Sep 17 00:00:00 2001 From: TechiePi Date: Sun, 10 Jul 2022 19:43:56 +0200 Subject: [PATCH] Implement debug and make function names consistent --- ctru-rs/src/services/cfgu.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ctru-rs/src/services/cfgu.rs b/ctru-rs/src/services/cfgu.rs index 0165811..acdb36d 100644 --- a/ctru-rs/src/services/cfgu.rs +++ b/ctru-rs/src/services/cfgu.rs @@ -2,6 +2,7 @@ //! //! This module contains basic methods to retrieve and change configuration from the console. +#[derive(Debug)] #[repr(u8)] pub enum Region { Japan = 0, @@ -13,6 +14,7 @@ pub enum Region { Taiwan = 6, } +#[derive(Debug)] #[repr(u8)] pub enum Language { Japan = 0, @@ -29,6 +31,7 @@ pub enum Language { TradChinese = 11, } +#[derive(Debug)] #[repr(u8)] pub enum SystemModel { Model3DS = 0, @@ -84,7 +87,7 @@ impl Cfgu { } /// Gets system's model - pub fn get_system_model(&self) -> crate::Result { + pub fn get_model(&self) -> crate::Result { let mut model: u8 = 0; let model_pointer: *mut u8 = &mut model; @@ -100,7 +103,7 @@ impl Cfgu { } /// Gets system's language - pub fn get_system_language(&self) -> crate::Result { + pub fn get_language(&self) -> crate::Result { let mut language: u8 = 0; let language_pointer: *mut u8 = &mut language;