[CFG] Implement GetRegionCanadaUSA

This commit is contained in:
wheremyfoodat 2023-03-18 20:35:35 +02:00
parent c24c4a9d83
commit 2c7cbadc14
3 changed files with 153 additions and 3 deletions

View file

@ -3,16 +3,19 @@
#include "helpers.hpp"
#include "logger.hpp"
#include "memory.hpp"
#include "region_codes.hpp"
class CFGService {
Handle handle = KernelHandles::CFG;
Memory& mem;
CountryCodes country = CountryCodes::US; // Default to USA
MAKE_LOG_FUNCTION(log, cfgLogger)
void writeStringU16(u32 pointer, const std::u16string& string);
// Service functions
void getConfigInfoBlk2(u32 messagePointer);
void getRegionCanadaUSA(u32 messagePointer);
void genUniqueConsoleHash(u32 messagePointer);
void secureInfoGetRegion(u32 messagePointer);