citra-emu
/
citra
Archived
1
0
Fork 0

core\loader\ncch.cpp: skip parsing Region info, if user has already... (#6463)

This commit is contained in:
SachinVin 2023-04-26 03:43:21 +05:30 committed by GitHub
parent 2c74ed1a6d
commit 000a616bd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@
#include <vector>
#include <fmt/format.h>
#include "common/logging/log.h"
#include "common/settings.h"
#include "common/string_util.h"
#include "common/swap.h"
#include "core/core.h"
@ -164,6 +165,10 @@ ResultStatus AppLoader_NCCH::LoadExec(std::shared_ptr<Kernel::Process>& process)
}
void AppLoader_NCCH::ParseRegionLockoutInfo(u64 program_id) {
if (Settings::values.region_value.GetValue() != Settings::REGION_VALUE_AUTO_SELECT) {
return;
}
auto cfg = Service::CFG::GetModule(Core::System::GetInstance());
ASSERT_MSG(cfg, "CFG Module missing!");