From c0f149d9a60c5fc3eaa2109d1e98a59be436c794 Mon Sep 17 00:00:00 2001 From: Nomi Date: Mon, 25 Sep 2023 13:15:20 +0200 Subject: [PATCH] Add more config infos --- src/core/services/cfg.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/core/services/cfg.cpp b/src/core/services/cfg.cpp index 7cab91bd..2430abb0 100644 --- a/src/core/services/cfg.cpp +++ b/src/core/services/cfg.cpp @@ -158,6 +158,18 @@ void CFGService::getConfigInfo(u32 output, u32 blockID, u32 size, u32 permission mem.write32(output, 0); } else if (size == 8 && blockID == 0x00090000) { mem.write64(output, 0); // Some sort of key used with nwm::UDS::InitializeWithVersion + } else if (size == 4 && blockID == 0x110000) { + mem.write32(output, 0); // According to 3Dbrew, 0 means system setup is required + } else if (size == 2 && blockID == 0x50001) { + // Backlight controls. Values taken from Citra + mem.write8(output, 0); + mem.write8(output + 1, 2); + } else if (size == 8 && blockID == 0x50009) { + // N3DS Backlight controls? + mem.write64(output, 0); + } else if (size == 4 && blockID == 0x180000) { + // Infrared LED related? + mem.write32(output, 0); } else { Helpers::panic("Unhandled GetConfigInfoBlk2 configuration. Size = %d, block = %X", size, blockID); }