summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2016-11-23 18:51:01 -0800
committerGravatar GitHub2016-11-23 18:51:01 -0800
commitef421696e34c5b9476eaaca892ea1632697f1d7c (patch)
treeb2c448a124857e62387956067c65032087a2cfd9 /src
parentMerge pull request #1654 from JamePeng/errdisp (diff)
parentcfg: add config block 0x00090000 (diff)
downloadyuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.tar.gz
yuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.tar.xz
yuzu-ef421696e34c5b9476eaaca892ea1632697f1d7c.zip
Merge pull request #2186 from wwylele/config9
cfg: add config block 0x00090000
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/cfg/cfg.cpp10
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,
45enum ConfigBlockID { 45enum ConfigBlockID {
46 StereoCameraSettingsBlockID = 0x00050005, 46 StereoCameraSettingsBlockID = 0x00050005,
47 SoundOutputModeBlockID = 0x00070001, 47 SoundOutputModeBlockID = 0x00070001,
48 ConsoleUniqueIDBlockID = 0x00090001, 48 ConsoleUniqueID1BlockID = 0x00090000,
49 ConsoleUniqueID2BlockID = 0x00090001,
49 UsernameBlockID = 0x000A0000, 50 UsernameBlockID = 0x000A0000,
50 BirthdayBlockID = 0x000A0001, 51 BirthdayBlockID = 0x000A0001,
51 LanguageBlockID = 0x000A0002, 52 LanguageBlockID = 0x000A0002,
@@ -409,7 +410,12 @@ ResultCode FormatConfig() {
409 if (!res.IsSuccess()) 410 if (!res.IsSuccess())
410 return res; 411 return res;
411 412
412 res = CreateConfigInfoBlk(ConsoleUniqueIDBlockID, sizeof(CONSOLE_UNIQUE_ID), 0xE, 413 res = CreateConfigInfoBlk(ConsoleUniqueID1BlockID, sizeof(CONSOLE_UNIQUE_ID), 0xE,
414 &CONSOLE_UNIQUE_ID);
415 if (!res.IsSuccess())
416 return res;
417
418 res = CreateConfigInfoBlk(ConsoleUniqueID2BlockID, sizeof(CONSOLE_UNIQUE_ID), 0xE,
413 &CONSOLE_UNIQUE_ID); 419 &CONSOLE_UNIQUE_ID);
414 if (!res.IsSuccess()) 420 if (!res.IsSuccess())
415 return res; 421 return res;