mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
国設定が未設定の場合のみ変更するように
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@539 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
2dc9f4e9c8
commit
a3338f5211
@ -517,8 +517,7 @@ void ShopOperationSingleTemplate(
|
||||
// アップデートを行う
|
||||
if (!s_ShopOperationExecuted[op])
|
||||
{
|
||||
// IVS取得モードの時は国設定を行う
|
||||
if (!s_GetIvsOnlyMode || (s_GetIvsOnlyMode && ImportCountryLanguageData().IsSuccess()))
|
||||
if (ImportCountryLanguageData().IsSuccess())
|
||||
{
|
||||
StartShopOperationSingle(op);
|
||||
s_ShopOperationExecuted[op] = true;
|
||||
|
||||
@ -390,6 +390,12 @@ nn::Result ImportCountryLanguageData()
|
||||
{
|
||||
nn::Result result = nn::ResultSuccess();
|
||||
|
||||
// 設定済みなら何もしない
|
||||
if(nn::cfg::CTR::GetCountry() != nn::cfg::CTR::CFG_COUNTRY_UNDEFINED)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
if (common::ExistsCountryLanguageFile())
|
||||
{
|
||||
size_t bufSize = 1024;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user