From 000a616bd9489ac0161c20d9369f58029c65e490 Mon Sep 17 00:00:00 2001 From: SachinVin <26602104+SachinVin@users.noreply.github.com> Date: Wed, 26 Apr 2023 03:43:21 +0530 Subject: [PATCH] core\loader\ncch.cpp: skip parsing Region info, if user has already... (#6463) --- src/core/loader/ncch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index 56053029c..beaff69c9 100644 --- a/src/core/loader/ncch.cpp +++ b/src/core/loader/ncch.cpp @@ -11,6 +11,7 @@ #include #include #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& 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!");