mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
ハッシュ検証に通った後の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:
parent
b9926341de
commit
2e3b5ea3c4
@ -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:
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user