cfg-savegame: add DebugMode block (#5330)

This commit is contained in:
Ben 2020-05-04 12:19:44 +02:00 committed by GitHub
parent 7f1a87574b
commit 2874401703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())