VERY experimental Nintendo Switch 2 emulator
C++
Add common methods to all cfg:* ports
Ryan Loebs3ad6ac2a674d
diff --git a/src/core/hle/service/cfg/cfg_i.cpp b/src/core/hle/service/cfg/cfg_i.cppindex 0559a07b26..b18060f6d9 100644--- a/src/core/hle/service/cfg/cfg_i.cpp+++ b/src/core/hle/service/cfg/cfg_i.cpp@@ -9,6 +9,18 @@ namespace Service {namespace CFG {const Interface::FunctionInfo FunctionTable[] = {+ // cfg common+ {0x00010082, GetConfigInfoBlk2, "GetConfigInfoBlk2"},+ {0x00020000, SecureInfoGetRegion, "SecureInfoGetRegion"},+ {0x00030040, GenHashConsoleUnique, "GenHashConsoleUnique"},+ {0x00040000, GetRegionCanadaUSA, "GetRegionCanadaUSA"},+ {0x00050000, GetSystemModel, "GetSystemModel"},+ {0x00060000, GetModelNintendo2DS, "GetModelNintendo2DS"},+ {0x00070040, nullptr, "WriteToFirstByteCfgSavegame"},+ {0x00080080, nullptr, "GoThroughTable"},+ {0x00090040, GetCountryCodeString, "GetCountryCodeString"},+ {0x000A0040, GetCountryCodeID, "GetCountryCodeID"},+ // cfg:i{0x04010082, GetConfigInfoBlk8, "GetConfigInfoBlk8"},{0x04020082, nullptr, "SetConfigInfoBlk4"},{0x04030000, UpdateConfigNANDSavegame, "UpdateConfigNANDSavegame"},diff --git a/src/core/hle/service/cfg/cfg_s.cpp b/src/core/hle/service/cfg/cfg_s.cppindex b03d290e5b..e001f7687b 100644--- a/src/core/hle/service/cfg/cfg_s.cpp+++ b/src/core/hle/service/cfg/cfg_s.cpp@@ -9,10 +9,18 @@ namespace Service {namespace CFG {const Interface::FunctionInfo FunctionTable[] = {+ // cfg common{0x00010082, GetConfigInfoBlk2, "GetConfigInfoBlk2"},{0x00020000, SecureInfoGetRegion, "SecureInfoGetRegion"},{0x00030040, GenHashConsoleUnique, "GenHashConsoleUnique"},+ {0x00040000, GetRegionCanadaUSA, "GetRegionCanadaUSA"},{0x00050000, GetSystemModel, "GetSystemModel"},+ {0x00060000, GetModelNintendo2DS, "GetModelNintendo2DS"},+ {0x00070040, nullptr, "WriteToFirstByteCfgSavegame"},+ {0x00080080, nullptr, "GoThroughTable"},+ {0x00090040, GetCountryCodeString, "GetCountryCodeString"},+ {0x000A0040, GetCountryCodeID, "GetCountryCodeID"},+ // cfg:s{0x04010082, GetConfigInfoBlk8, "GetConfigInfoBlk8"},{0x04020082, nullptr, "SetConfigInfoBlk4"},{0x04030000, UpdateConfigNANDSavegame, "UpdateConfigNANDSavegame"},diff --git a/src/core/hle/service/cfg/cfg_u.cpp b/src/core/hle/service/cfg/cfg_u.cppindex 89ae96c9e5..606f7b2ebb 100644--- a/src/core/hle/service/cfg/cfg_u.cpp+++ b/src/core/hle/service/cfg/cfg_u.cpp@@ -9,6 +9,7 @@ namespace Service {namespace CFG {const Interface::FunctionInfo FunctionTable[] = {+ // cfg common{0x00010082, GetConfigInfoBlk2, "GetConfigInfoBlk2"},{0x00020000, SecureInfoGetRegion, "SecureInfoGetRegion"},{0x00030040, GenHashConsoleUnique, "GenHashConsoleUnique"},