正常なプレイ履歴を残すために電源断イベントを記録してからptmを吸い出すように

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
This commit is contained in:
N2614 2011-06-07 06:14:44 +00:00
parent 1e1922683c
commit 6cc3de7432

View File

@ -32,6 +32,8 @@
#include <nn/crypto/crypto_SwAesCmac.h>
#include <nn/mcu.h>
#include <nn/am.h>
#include <nn/pl/CTR/pl_PlayHistoryApi.h>
#include <nn/pl/CTR/pl_PlayHistoryApiSysmenu.h>
#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);