IVS取得モードでユーザのSDカードチェックをせずシャットダウンするように

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@273 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-05-24 12:04:12 +00:00
parent 2972efd94c
commit 6b939f7b9c

View File

@ -111,6 +111,7 @@ typedef enum RestoreState
TRANSFER_ACCOUNT_DONE, // アカウント転送完了 TRANSFER_ACCOUNT_DONE, // アカウント転送完了
DOWNLOAD_IVS, // インフラからIVSを取得する DOWNLOAD_IVS, // インフラからIVSを取得する
DOWNLOAD_IVS_DONE, // インフラからIVSを取得完了 DOWNLOAD_IVS_DONE, // インフラからIVSを取得完了
DOWNLOAD_IVS_WAIT_NEXT, // IVS取得モードでキー入力待ち
CHECK_IVS, // IVSとSDカードのセーブデータディレクトリの一致を確認 CHECK_IVS, // IVSとSDカードのセーブデータディレクトリの一致を確認
CHECK_SD_DIRECTORY, // SDカードのIVS依存ディレクトリを探す CHECK_SD_DIRECTORY, // SDカードのIVS依存ディレクトリを探す
CHECK_SD_DIRECTORY_SUCCESS, // SDカードのIVS依存ディレクトリチェック完了 CHECK_SD_DIRECTORY_SUCCESS, // SDカードのIVS依存ディレクトリチェック完了
@ -133,7 +134,8 @@ typedef enum RestoreState
DOWNLOAD_TWL, // TWLアプリ本体をダウンロードする DOWNLOAD_TWL, // TWLアプリ本体をダウンロードする
WAIT_SD_EJECT, // SDカードぬき待ち WAIT_SD_EJECT, // SDカードぬき待ち
ALL_DONE, // すべて完了 ALL_DONE, // すべて完了
SHUTDOWN, // シャットダウン中 SHUTDOWN, // シャットダウン
INITIALIZE_AND_SHUTDOWN, // 本体初期化後にシャットダウン中
FAIL // 失敗 FAIL // 失敗
} RestoreState; } RestoreState;
@ -227,11 +229,7 @@ void CheckNupExecuted(common::HardwareStateManager& manager, ::std::vector<std::
{ {
if (common::ExistsUpdateCheckedFile()) if (common::ExistsUpdateCheckedFile())
{ {
if(s_GetIvsOnlyMode) if (s_NupOnlyMode)
{
CheckDownloadIvs(manager, message, goNextStep);
}
else if (s_NupOnlyMode)
{ {
s_RestoreState = DELETE_ACCOUNT; s_RestoreState = DELETE_ACCOUNT;
} }
@ -276,7 +274,7 @@ void CheckDownloadIvs(common::HardwareStateManager& manager, ::std::vector<std::
{ {
if(s_GetIvsOnlyMode) if(s_GetIvsOnlyMode)
{ {
s_RestoreState = CHECK_IVS; s_RestoreState = DOWNLOAD_IVS_WAIT_NEXT;
} }
else else
{ {
@ -1427,9 +1425,9 @@ void ControlState(common::HardwareStateManager& manager, ::std::vector<std::stri
} }
break; break;
case NUP_ONLY_WAIT_NEXT: case DOWNLOAD_IVS_WAIT_NEXT:
{ {
operationMessage.push_back(::std::string("A or START Button to Shutdown.")); operationMessage.push_back(::std::string("Press A or START Button to Shutdown."));
if (nextStep) if (nextStep)
{ {
@ -1438,7 +1436,24 @@ void ControlState(common::HardwareStateManager& manager, ::std::vector<std::stri
} }
break; break;
case NUP_ONLY_WAIT_NEXT:
{
operationMessage.push_back(::std::string("Press A or START Button to Shutdown."));
if (nextStep)
{
s_RestoreState = INITIALIZE_AND_SHUTDOWN;
}
}
break;
case SHUTDOWN: case SHUTDOWN:
{
nn::ptm::CTR::ShutdownAsync(0, nn::fnd::TimeSpan::FromSeconds(0));
}
break;
case INITIALIZE_AND_SHUTDOWN:
{ {
// 本体初期化を行う // 本体初期化を行う
InitializeFileSystem(); InitializeFileSystem();