summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2014-12-19 23:01:23 +0100
committerSubv <subv2112@gmail.com>2014-12-21 22:39:02 +0100
commitb49bdb6ba7700007240c207afb69c75f8fbd0f62 (patch)
tree5bee55a552c22e80a72437db1411ac8928f7e1b2 /src
parentCFG: Refactored how the config file works. (diff)
downloadyuzu-b49bdb6ba7700007240c207afb69c75f8fbd0f62.tar
yuzu-b49bdb6ba7700007240c207afb69c75f8fbd0f62.tar.gz
yuzu-b49bdb6ba7700007240c207afb69c75f8fbd0f62.tar.bz2
yuzu-b49bdb6ba7700007240c207afb69c75f8fbd0f62.tar.lz
yuzu-b49bdb6ba7700007240c207afb69c75f8fbd0f62.tar.xz
yuzu-b49bdb6ba7700007240c207afb69c75f8fbd0f62.tar.zst
yuzu-b49bdb6ba7700007240c207afb69c75f8fbd0f62.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/cfg_u.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/hle/service/cfg_u.cpp b/src/core/hle/service/cfg_u.cpp
index 827399cf9..553045437 100644
--- a/src/core/hle/service/cfg_u.cpp
+++ b/src/core/hle/service/cfg_u.cpp
@@ -21,10 +21,25 @@ enum SystemModel {
NEW_NINTENDO_3DS_XL
};
+enum SystemLanguage {
+ LANGUAGE_JP,
+ LANGUAGE_EN,
+ LANGUAGE_FR,
+ LANGUAGE_DE,
+ LANGUAGE_IT,
+ LANGUAGE_ES,
+ LANGUAGE_ZH,
+ LANGUAGE_KO,
+ LANGUAGE_NL,
+ LANGUAGE_PT,
+ LANGUAGE_RU
+};
+
static std::unique_ptr<FileSys::Archive_SystemSaveData> cfg_system_save_data;
static const u64 CFG_SAVE_ID = 0x00010017;
static const u64 CONSOLE_UNIQUE_ID = 0xDEADC0DE;
static const u32 CONSOLE_MODEL = NINTENDO_3DS_XL;
+static const u8 CONSOLE_LANGUAGE = LANGUAGE_EN;
static const u32 CONFIG_SAVEFILE_SIZE = 0x8000;
static std::array<u8, CONFIG_SAVEFILE_SIZE> cfg_config_file_buffer = { };
@@ -270,6 +285,9 @@ ResultCode FormatConfig() {
res = CreateConfigInfoBlk(0x000F0004, 0x4, 0x8, reinterpret_cast<u8 const*>(&CONSOLE_MODEL));
if (!res.IsSuccess())
return res;
+ res = CreateConfigInfoBlk(0x000A0002, 0x1, 0xA, &CONSOLE_LANGUAGE);
+ if (!res.IsSuccess())
+ return res;
// Save the buffer to the file
res = UpdateConfigNANDSavegame();
if (!res.IsSuccess())