From 84ade0713c118e48418c47a0919bd663950e87e0 Mon Sep 17 00:00:00 2001 From: wwylele Date: Fri, 29 Apr 2016 13:31:29 +0300 Subject: [PATCH 1/2] add config block 0x00170000 --- src/core/hle/service/cfg/cfg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp index 525432957..b9322c55d 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp @@ -389,6 +389,10 @@ ResultCode FormatConfig() { res = CreateConfigInfoBlk(0x000F0004, sizeof(CONSOLE_MODEL), 0xC, &CONSOLE_MODEL); if (!res.IsSuccess()) return res; + // 0x00170000 - Unknown + res = CreateConfigInfoBlk(0x00170000, 0x4, 0xE, zero_buffer); + if (!res.IsSuccess()) return res; + // Save the buffer to the file res = UpdateConfigNANDSavegame(); if (!res.IsSuccess()) From 7e1b76d406b7d495a73d034f4342d78b265c6006 Mon Sep 17 00:00:00 2001 From: wwylele Date: Sun, 1 May 2016 07:44:55 +0300 Subject: [PATCH 2/2] remove duplicated function declaration --- src/core/hle/service/cfg/cfg.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/core/hle/service/cfg/cfg.h b/src/core/hle/service/cfg/cfg.h index 606ab99cf..c01806836 100644 --- a/src/core/hle/service/cfg/cfg.h +++ b/src/core/hle/service/cfg/cfg.h @@ -97,19 +97,6 @@ void GetCountryCodeString(Service::Interface* self); */ void GetCountryCodeID(Service::Interface* self); -/** - * CFG::GetConfigInfoBlk2 service function - * Inputs: - * 0 : 0x00010082 - * 1 : Size - * 2 : Block ID - * 3 : Descriptor for the output buffer - * 4 : Output buffer pointer - * Outputs: - * 1 : Result of function, 0 on success, otherwise error code - */ -void GetConfigInfoBlk2(Service::Interface* self); - /** * CFG::SecureInfoGetRegion service function * Inputs: