summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-09-03 18:31:34 -0300
committerGravatar Yuri Kunde Schlesner2015-09-14 17:39:52 -0300
commitbbf92a54e5f664bcf82121c3c0934731eb9baea9 (patch)
tree68312e59a115e2625e498869109f691baadc81a4
parentService/CFG: Correct flags in 2 default blocks (diff)
downloadyuzu-bbf92a54e5f664bcf82121c3c0934731eb9baea9.tar.gz
yuzu-bbf92a54e5f664bcf82121c3c0934731eb9baea9.tar.xz
yuzu-bbf92a54e5f664bcf82121c3c0934731eb9baea9.zip
Service/CFG: Add default entry for block 0x000A0001 (birthday)
-rw-r--r--src/core/hle/service/cfg/cfg.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp
index 0c04a88ce..6f2cf0190 100644
--- a/src/core/hle/service/cfg/cfg.cpp
+++ b/src/core/hle/service/cfg/cfg.cpp
@@ -332,6 +332,12 @@ ResultCode FormatConfig() {
332 if (!res.IsSuccess()) return res; 332 if (!res.IsSuccess()) return res;
333 res = CreateConfigInfoBlk(0x000A0000, sizeof(CONSOLE_USERNAME_BLOCK), 0xE, &CONSOLE_USERNAME_BLOCK); 333 res = CreateConfigInfoBlk(0x000A0000, sizeof(CONSOLE_USERNAME_BLOCK), 0xE, &CONSOLE_USERNAME_BLOCK);
334 if (!res.IsSuccess()) return res; 334 if (!res.IsSuccess()) return res;
335
336 // 0x000A0001 - Profile birthday
337 const u8 profile_birthday[2] = {3, 25}; // March 25th, 2014
338 res = CreateConfigInfoBlk(0x000A0001, sizeof(profile_birthday), 0xE, profile_birthday);
339 if (!res.IsSuccess()) return res;
340
335 res = CreateConfigInfoBlk(0x000A0002, sizeof(CONSOLE_LANGUAGE), 0xE, &CONSOLE_LANGUAGE); 341 res = CreateConfigInfoBlk(0x000A0002, sizeof(CONSOLE_LANGUAGE), 0xE, &CONSOLE_LANGUAGE);
336 if (!res.IsSuccess()) return res; 342 if (!res.IsSuccess()) return res;
337 res = CreateConfigInfoBlk(0x000B0000, sizeof(COUNTRY_INFO), 0xE, &COUNTRY_INFO); 343 res = CreateConfigInfoBlk(0x000B0000, sizeof(COUNTRY_INFO), 0xE, &COUNTRY_INFO);