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

をマージ

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@326 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-06-07 06:22:57 +00:00
parent 6cc3de7432
commit dc298ff550

View File

@ -27,6 +27,8 @@
#include <nn/drivers/aes/CTR/ARM946ES/driverAes_Types.h>
#include <nn/crypto/crypto_SwAesCtrContext.h>
#include <nn/mcu.h>
#include <nn/pl/CTR/pl_PlayHistoryApi.h>
#include <nn/pl/CTR/pl_PlayHistoryApiSysmenu.h>
#include "Exporter.h"
#include "CommonLogger.h"
@ -507,6 +509,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()
{
@ -538,6 +545,9 @@ void ExportData()
// プレイ履歴をSDに書き出す
//WritePlayHistory();
// 電源断の履歴をptmに追加する
AddShutDownPtmEvent();
// RTCをSDに書き出す
WriteMcuRtcData();