From 28744017034df5f5cb1fdc8c3a0c7a5b7e1da490 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 4 May 2020 12:19:44 +0200 Subject: [PATCH] cfg-savegame: add DebugMode block (#5330) --- 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 982dc03f4..bc37f733f 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp @@ -74,6 +74,7 @@ enum ConfigBlockID { StateNameBlockID = 0x000B0002, EULAVersionBlockID = 0x000D0000, ConsoleModelBlockID = 0x000F0004, + DebugModeBlockID = 0x00130000, }; struct UsernameBlock { @@ -542,6 +543,11 @@ ResultCode Module::FormatConfig() { if (!res.IsSuccess()) return res; + // 0x00130000 - DebugMode (0x100 for debug mode) + res = CreateConfigInfoBlk(DebugModeBlockID, 0x4, 0xE, zero_buffer); + if (!res.IsSuccess()) + return res; + // 0x00170000 - Unknown res = CreateConfigInfoBlk(0x00170000, 0x4, 0xE, zero_buffer); if (!res.IsSuccess())