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);