From dc1d45e0efc59aba191dd97e05ffdffeda20adaa Mon Sep 17 00:00:00 2001 From: N2614 Date: Thu, 21 Feb 2013 08:12:33 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=90=E3=83=83=E3=82=AF=E3=82=A2=E3=83=83?= =?UTF-8?q?=E3=83=97=E6=99=82=E3=81=ABnim=E3=81=AE=E3=82=BB=E3=83=BC?= =?UTF-8?q?=E3=83=96=E3=83=87=E3=83=BC=E3=82=BF=E3=82=92=E5=89=8A=E9=99=A4?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@718 385bec56-5757-e545-9c3a-d8741f4650f1 --- .../sources/ConsoleBackup/Exporter.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/trunk/ConsoleDataMigration/sources/ConsoleBackup/Exporter.cpp b/trunk/ConsoleDataMigration/sources/ConsoleBackup/Exporter.cpp index 9b0bfed..9e48d77 100644 --- a/trunk/ConsoleDataMigration/sources/ConsoleBackup/Exporter.cpp +++ b/trunk/ConsoleDataMigration/sources/ConsoleBackup/Exporter.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include "Exporter.h" #include "CommonLogger.h" @@ -840,6 +841,20 @@ nn::Result WriteVersionData(common::HardwareStateManager& manager) return sdWriter.WriteBufWithCmac(common::VERSION_DATA_PATHNAME, &versionData, sizeof(common::VerDef)); } +nn::Result DeleteNimSystemSaveData() +{ + COMMON_LOGGER_RETURN_RESULT_IF_FAILED( + nn::nim::InitializeForUpdater()); + + COMMON_LOGGER_RETURN_RESULT_IF_FAILED( + nn::nim::CTR::Updater::FormatSaveData()); + + COMMON_LOGGER_RETURN_RESULT_IF_FAILED( + nn::nim::FinalizeForUpdater()); + + return nn::ResultSuccess(); +} + bool DeleteNimSaveData() { nn::Result result; @@ -863,6 +878,9 @@ bool DeleteNimSaveData() result = common::SdMountManager::Unmount(); COMMON_LOGGER_RETURN_FALSE_IF_FAILED(result); + COMMON_LOGGER_RETURN_FALSE_IF_FAILED( + DeleteNimSystemSaveData()); + return true; }