remove GetCurrentModule() functions in HLE Services
This commit is contained in:
parent
4ee914c7a8
commit
9d53136f20
14 changed files with 99 additions and 69 deletions
|
@ -144,7 +144,13 @@ void AppLoader_NCCH::ParseRegionLockoutInfo() {
|
|||
}
|
||||
region_lockout >>= 1;
|
||||
}
|
||||
Service::CFG::GetCurrentModule()->SetPreferredRegionCodes(regions);
|
||||
auto cfg = Core::System::GetInstance()
|
||||
.ServiceManager()
|
||||
.GetService<Service::CFG::Module::Interface>("cfg:u");
|
||||
ASSERT_MSG(cfg, "cfg:u not started!");
|
||||
auto cfg_module = cfg->GetModule();
|
||||
ASSERT_MSG(cfg_module, "CFG Module missing!");
|
||||
cfg_module->SetPreferredRegionCodes(regions);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue