ハッシュ検証に通った後のNAND書き込み時にまず対象を削除するように

時刻同期前にShop::Connectし、Ivsの送信とチケット同期を行うように

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@209 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-04-20 10:57:17 +00:00
parent b9926341de
commit 2e3b5ea3c4
2 changed files with 12 additions and 13 deletions

View File

@ -1141,24 +1141,21 @@ void ControlState(::std::vector<std::string>& operationMessage, bool& nextStep)
// 削除処理
case RESTORE_CAL:
{
static bool init = true;
if (init)
// ptmのセーブデータ移行後に時計を無効化する
nn::ptm::CTR::InvalidateSystemTime();
// cfgの本体固有値をcal値で初期化する
result = InitializeHardwareDependentSetting();
if (result.IsFailure())
{
// ptmのセーブデータ移行後に時計を無効化する
nn::ptm::CTR::InvalidateSystemTime();
// cfgの本体固有値をcal値で初期化する
result = InitializeHardwareDependentSetting();
if (result.IsFailure())
{
s_RestoreState = FAIL;
}
init = false;
s_RestoreState = FAIL;
}
init = false;
s_RestoreState = CONNECT_ONLY;
}
break;
case DOWNLOAD_TWL:
{

View File

@ -809,6 +809,8 @@ bool ConfirmFile(nn::fs::FileInputStream* from_file, nn::fs::FileStream* to_file
else
{
NN_LOG("Verification Success %s, Rename\n", GetCharStr(sdPath));
// 削除する
nn::fs::TryDeleteFile(truePath);
// リネームする
result = nn::fs::TryRenameFile(tmpPath, truePath);
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result);