From bbf92a54e5f664bcf82121c3c0934731eb9baea9 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Thu, 3 Sep 2015 18:31:34 -0300 Subject: [PATCH] Service/CFG: Add default entry for block 0x000A0001 (birthday) --- src/core/hle/service/cfg/cfg.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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() { if (!res.IsSuccess()) return res; res = CreateConfigInfoBlk(0x000A0000, sizeof(CONSOLE_USERNAME_BLOCK), 0xE, &CONSOLE_USERNAME_BLOCK); if (!res.IsSuccess()) return res; + + // 0x000A0001 - Profile birthday + const u8 profile_birthday[2] = {3, 25}; // March 25th, 2014 + res = CreateConfigInfoBlk(0x000A0001, sizeof(profile_birthday), 0xE, profile_birthday); + if (!res.IsSuccess()) return res; + res = CreateConfigInfoBlk(0x000A0002, sizeof(CONSOLE_LANGUAGE), 0xE, &CONSOLE_LANGUAGE); if (!res.IsSuccess()) return res; res = CreateConfigInfoBlk(0x000B0000, sizeof(COUNTRY_INFO), 0xE, &COUNTRY_INFO);