AP設定を2回読まないように

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@71 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-02-21 02:01:58 +00:00
parent 084241d0e7
commit 968c16800a

View File

@ -187,6 +187,7 @@ void ControlState(::std::vector<std::string>& operationMessage, bool& nextStep,
bool error = false;
bool needsUpdate = false;
bool needsErase = false;
bool validApSetting = false;
// SDカードが挿入されているか
if (nn::fs::IsSdmcInserted())
@ -194,7 +195,7 @@ void ControlState(::std::vector<std::string>& operationMessage, bool& nextStep,
// SDカードにアップデート完了ファイルがあるか
if (ExistsUpdateCheckedFile())
{
CheckAndReadAPSetting(operationMessage);
validApSetting = CheckAndReadAPSetting(operationMessage);
if (s_NupOnlyMode)
{
s_RestoreState = NUP_ONLY_WAIT_SD_EJECT;
@ -278,7 +279,7 @@ void ControlState(::std::vector<std::string>& operationMessage, bool& nextStep,
}
else
{
if(CheckAndReadAPSetting(operationMessage))
if(validApSetting)
{
// 削除処理を行う
needsErase = true;