remove GetCurrentModule() functions in HLE Services
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user