2015-01-13 20:43:30 +01:00
|
|
|
// Copyright 2015 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2016-09-19 03:01:46 +02:00
|
|
|
#include "core/hle/service/cfg/cfg.h"
|
2016-09-21 08:52:38 +02:00
|
|
|
#include "core/hle/service/cfg/cfg_s.h"
|
2015-01-13 20:43:30 +01:00
|
|
|
|
2015-02-27 03:13:08 +01:00
|
|
|
namespace Service {
|
|
|
|
namespace CFG {
|
2015-01-13 20:43:30 +01:00
|
|
|
|
|
|
|
const Interface::FunctionInfo FunctionTable[] = {
|
2016-03-29 08:32:25 +02:00
|
|
|
// cfg common
|
2016-09-18 02:38:01 +02:00
|
|
|
{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"},
|
2016-03-29 08:32:25 +02:00
|
|
|
// cfg:s
|
2016-09-18 02:38:01 +02:00
|
|
|
{0x04010082, GetConfigInfoBlk8, "GetConfigInfoBlk8"},
|
|
|
|
{0x04020082, SetConfigInfoBlk4, "SetConfigInfoBlk4"},
|
|
|
|
{0x04030000, UpdateConfigNANDSavegame, "UpdateConfigNANDSavegame"},
|
|
|
|
{0x04040042, nullptr, "GetLocalFriendCodeSeedData"},
|
|
|
|
{0x04050000, nullptr, "GetLocalFriendCodeSeed"},
|
|
|
|
{0x04060000, nullptr, "SecureInfoGetRegion"},
|
|
|
|
{0x04070000, nullptr, "SecureInfoGetByte101"},
|
|
|
|
{0x04080042, nullptr, "SecureInfoGetSerialNo"},
|
|
|
|
{0x04090000, nullptr, "UpdateConfigBlk00040003"},
|
2015-01-13 20:43:30 +01:00
|
|
|
};
|
|
|
|
|
2015-02-27 03:13:08 +01:00
|
|
|
CFG_S_Interface::CFG_S_Interface() {
|
2015-01-30 19:56:49 +01:00
|
|
|
Register(FunctionTable);
|
2015-01-13 20:43:30 +01:00
|
|
|
}
|
|
|
|
|
2015-02-27 03:13:08 +01:00
|
|
|
} // namespace CFG
|
|
|
|
} // namespace Service
|