summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-09-01 20:09:50 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-09-14 22:39:50 +0200
commitd91f1c062440a89570e54c079ebdff5a559e0874 (patch)
tree1fc5e049d67f59abbff18fb9b32ab16b7c780bfd /src/core/hle/service
parentFix narrowing conversion warning (diff)
downloadyuzu-d91f1c062440a89570e54c079ebdff5a559e0874.tar
yuzu-d91f1c062440a89570e54c079ebdff5a559e0874.tar.gz
yuzu-d91f1c062440a89570e54c079ebdff5a559e0874.tar.bz2
yuzu-d91f1c062440a89570e54c079ebdff5a559e0874.tar.lz
yuzu-d91f1c062440a89570e54c079ebdff5a559e0874.tar.xz
yuzu-d91f1c062440a89570e54c079ebdff5a559e0874.tar.zst
yuzu-d91f1c062440a89570e54c079ebdff5a559e0874.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/cfg/cfg.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp
index de4af18bd..0c65d6fcc 100644
--- a/src/core/hle/service/cfg/cfg.cpp
+++ b/src/core/hle/service/cfg/cfg.cpp
@@ -318,6 +318,12 @@ ResultCode FormatConfig() {
config->data_entries_offset = 0x455C;
// Insert the default blocks
+ u8 zero_buffer[0xC0] = {};
+
+ // 0x00030001 - Unknown
+ res = CreateConfigInfoBlk(0x00030001, 0x8, 0xE, zero_buffer);
+ if (!res.IsSuccess()) return res;
+
res = CreateConfigInfoBlk(0x00050005, sizeof(STEREO_CAMERA_SETTINGS), 0xE, STEREO_CAMERA_SETTINGS.data());
if (!res.IsSuccess()) return res;
res = CreateConfigInfoBlk(0x00070001, sizeof(SOUND_OUTPUT_MODE), 0xE, &SOUND_OUTPUT_MODE);
@@ -330,6 +336,34 @@ ResultCode FormatConfig() {
if (!res.IsSuccess()) return res;
res = CreateConfigInfoBlk(0x000B0000, sizeof(COUNTRY_INFO), 0xE, &COUNTRY_INFO);
if (!res.IsSuccess()) return res;
+
+ char16_t country_name_buffer[16][0x40] = {};
+ for (size_t i = 0; i < 16; ++i) {
+ auto size = Common::UTF8ToUTF16("Gensokyo").copy(country_name_buffer[i], 0x40);
+ }
+ // 0x000B0001 - Localized names for the profile Country
+ res = CreateConfigInfoBlk(0x000B0001, sizeof(country_name_buffer), 0xE, country_name_buffer);
+ if (!res.IsSuccess()) return res;
+ // 0x000B0002 - Localized names for the profile State/Province
+ res = CreateConfigInfoBlk(0x000B0002, sizeof(country_name_buffer), 0xE, country_name_buffer);
+ if (!res.IsSuccess()) return res;
+
+ // 0x000B0003 - Unknown, related to country/address (zip code?)
+ res = CreateConfigInfoBlk(0x000B0003, 0x4, 0xE, zero_buffer);
+ if (!res.IsSuccess()) return res;
+
+ // 0x000C0000 - Unknown
+ res = CreateConfigInfoBlk(0x000C0000, 0xC0, 0xE, zero_buffer);
+ if (!res.IsSuccess()) return res;
+
+ // 0x000C0001 - Unknown
+ res = CreateConfigInfoBlk(0x000C0001, 0x14, 0xE, zero_buffer);
+ if (!res.IsSuccess()) return res;
+
+ // 0x000D0000 - Accepted EULA version
+ res = CreateConfigInfoBlk(0x000D0000, 0x4, 0xE, zero_buffer);
+ if (!res.IsSuccess()) return res;
+
res = CreateConfigInfoBlk(0x000F0004, sizeof(CONSOLE_MODEL), 0x8, &CONSOLE_MODEL);
if (!res.IsSuccess()) return res;