From 6cc3de74325b52e95132675fb35e5354d8f825ff Mon Sep 17 00:00:00 2001 From: N2614 Date: Tue, 7 Jun 2011 06:14:44 +0000 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E3=81=AA=E3=83=97=E3=83=AC?= =?UTF-8?q?=E3=82=A4=E5=B1=A5=E6=AD=B4=E3=82=92=E6=AE=8B=E3=81=99=E3=81=9F?= =?UTF-8?q?=E3=82=81=E3=81=AB=E9=9B=BB=E6=BA=90=E6=96=AD=E3=82=A4=E3=83=99?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=82=92=E8=A8=98=E9=8C=B2=E3=81=97=E3=81=A6?= =?UTF-8?q?=E3=81=8B=E3=82=89ptm=E3=82=92=E5=90=B8=E3=81=84=E5=87=BA?= =?UTF-8?q?=E3=81=99=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@325 385bec56-5757-e545-9c3a-d8741f4650f1 --- .../sources/ConsoleBackup/Exporter.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/trunk/ConsoleDataMigration/sources/ConsoleBackup/Exporter.cpp b/trunk/ConsoleDataMigration/sources/ConsoleBackup/Exporter.cpp index 0a77d61..715b84d 100644 --- a/trunk/ConsoleDataMigration/sources/ConsoleBackup/Exporter.cpp +++ b/trunk/ConsoleDataMigration/sources/ConsoleBackup/Exporter.cpp @@ -32,6 +32,8 @@ #include #include #include +#include +#include #include "Exporter.h" #include "CommonLogger.h" @@ -841,6 +843,11 @@ void DeleteNimSaveData() common::SdMountManager::Unmount(); } +void AddShutDownPtmEvent() +{ + nn::pl::CTR::NotifyPlayEvent(nn::pl::CTR::EVENTTYPE_TERMINATE, nn::CTR::INVALID_PROGRAM_ID, + nn::fnd::DateTime::GetNow()); +} void ExportData(common::HardwareStateManager& manager) { @@ -876,6 +883,9 @@ void ExportData(common::HardwareStateManager& manager) // プレイ履歴をSDに書き出す //WritePlayHistory(); + // 電源断の履歴をptmに追加する + AddShutDownPtmEvent(); + // RTCをSDに書き出す WriteMcuRtcData(manager);