NUP専用モードが正しく動くように

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@86 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-02-24 04:18:19 +00:00
parent a1d9d2ba6d
commit cb82c8d23e

View File

@ -206,7 +206,7 @@ void ExecSyncMcuRtc()
// Zero NUP限定コード // Zero NUP限定コード
bool NeedsNup() bool NeedsNup()
{ {
if(AlreadyExecutedNup()) if(AlreadyExecutedNup() || s_NupOnlyMode)
{ {
return !common::ExistsUpdateCheckedFile(); return !common::ExistsUpdateCheckedFile();
} }
@ -235,11 +235,11 @@ void ControlState(::std::vector<std::string>& operationMessage, bool& nextStep,
if (nn::fs::IsSdmcInserted()) if (nn::fs::IsSdmcInserted())
{ {
CheckAndReadVersionData(operationMessage); CheckAndReadVersionData(operationMessage);
validApSetting = CheckAndReadAPSetting(operationMessage);
// NUPが必要か // NUPが必要か
if (!NeedsNup()) if (!NeedsNup())
{ {
validApSetting = CheckAndReadAPSetting(operationMessage);
if (s_NupOnlyMode) if (s_NupOnlyMode)
{ {
s_RestoreState = NUP_ONLY_WAIT_SD_EJECT; s_RestoreState = NUP_ONLY_WAIT_SD_EJECT;
@ -336,7 +336,7 @@ void ControlState(::std::vector<std::string>& operationMessage, bool& nextStep,
} }
else else
{ {
if (CheckAndReadAPSetting(operationMessage)) if (validApSetting)
{ {
// ネットワークアップデートを行う // ネットワークアップデートを行う
needsUpdate = true; needsUpdate = true;