diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-03-01 08:42:36 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-03-01 08:55:48 +0100 |
commit | 228d8ac14acb2d7c711596a5cd1974a42112cb07 (patch) | |
tree | ad170a29c92e0eb8173e96db2e0fe85abd24097e /src/core/hle/service | |
parent | Merge pull request #1427 from MerryMage/emit-lbit (diff) | |
download | yuzu-228d8ac14acb2d7c711596a5cd1974a42112cb07.tar yuzu-228d8ac14acb2d7c711596a5cd1974a42112cb07.tar.gz yuzu-228d8ac14acb2d7c711596a5cd1974a42112cb07.tar.bz2 yuzu-228d8ac14acb2d7c711596a5cd1974a42112cb07.tar.lz yuzu-228d8ac14acb2d7c711596a5cd1974a42112cb07.tar.xz yuzu-228d8ac14acb2d7c711596a5cd1974a42112cb07.tar.zst yuzu-228d8ac14acb2d7c711596a5cd1974a42112cb07.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/cfg/cfg.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp index 7556aa6a5..4bf0d446b 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp @@ -4,9 +4,10 @@ #include <algorithm> +#include "common/file_util.h" #include "common/logging/log.h" #include "common/string_util.h" -#include "common/file_util.h" +#include "common/swap.h" #include "core/file_sys/archive_systemsavedata.h" #include "core/file_sys/file_backend.h" @@ -334,6 +335,18 @@ ResultCode FormatConfig() { res = CreateConfigInfoBlk(0x000A0000, sizeof(CONSOLE_USERNAME_BLOCK), 0xE, &CONSOLE_USERNAME_BLOCK); if (!res.IsSuccess()) return res; + // 0x000A0000 - Profile username + struct { + u16_le username[10]; + u8 unused[4]; + u32_le wordfilter_version; // Unused by Citra + } profile_username = {}; + + std::u16string username_string = Common::UTF8ToUTF16("Citra"); + std::copy(username_string.cbegin(), username_string.cend(), profile_username.username); + res = CreateConfigInfoBlk(0x000A0000, sizeof(profile_username), 0xE, &profile_username); + 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); |