diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-11-24 03:51:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-24 03:51:01 +0100 |
commit | ef421696e34c5b9476eaaca892ea1632697f1d7c (patch) | |
tree | b2c448a124857e62387956067c65032087a2cfd9 /src/core/hle/service | |
parent | Merge pull request #1654 from JamePeng/errdisp (diff) | |
parent | cfg: add config block 0x00090000 (diff) | |
download | yuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.tar yuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.tar.gz yuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.tar.bz2 yuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.tar.lz yuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.tar.xz yuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.tar.zst yuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/cfg/cfg.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp index 24eee6903..d3d0f3b55 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp @@ -45,7 +45,8 @@ static_assert(sizeof(SaveFileConfig) == 0x455C, enum ConfigBlockID { StereoCameraSettingsBlockID = 0x00050005, SoundOutputModeBlockID = 0x00070001, - ConsoleUniqueIDBlockID = 0x00090001, + ConsoleUniqueID1BlockID = 0x00090000, + ConsoleUniqueID2BlockID = 0x00090001, UsernameBlockID = 0x000A0000, BirthdayBlockID = 0x000A0001, LanguageBlockID = 0x000A0002, @@ -409,7 +410,12 @@ ResultCode FormatConfig() { if (!res.IsSuccess()) return res; - res = CreateConfigInfoBlk(ConsoleUniqueIDBlockID, sizeof(CONSOLE_UNIQUE_ID), 0xE, + res = CreateConfigInfoBlk(ConsoleUniqueID1BlockID, sizeof(CONSOLE_UNIQUE_ID), 0xE, + &CONSOLE_UNIQUE_ID); + if (!res.IsSuccess()) + return res; + + res = CreateConfigInfoBlk(ConsoleUniqueID2BlockID, sizeof(CONSOLE_UNIQUE_ID), 0xE, &CONSOLE_UNIQUE_ID); if (!res.IsSuccess()) return res; |