Merge pull request #4328 from B3n30/remove_current_module

remove GetCurrentModule() functions in HLE Services
This commit is contained in:
Weiyi Wang 2018-10-18 21:39:24 -04:00 committed by GitHub
commit 1de63f9b16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 90 additions and 64 deletions

View file

@ -143,7 +143,9 @@ void AppLoader_NCCH::ParseRegionLockoutInfo() {
}
region_lockout >>= 1;
}
Service::CFG::GetCurrentModule()->SetPreferredRegionCodes(regions);
auto cfg = Service::CFG::GetModule(Core::System::GetInstance());
ASSERT_MSG(cfg, "CFG Module missing!");
cfg->SetPreferredRegionCodes(regions);
}
}