mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
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:
parent
6cc3de7432
commit
dc298ff550
@ -27,6 +27,8 @@
|
|||||||
#include <nn/drivers/aes/CTR/ARM946ES/driverAes_Types.h>
|
#include <nn/drivers/aes/CTR/ARM946ES/driverAes_Types.h>
|
||||||
#include <nn/crypto/crypto_SwAesCtrContext.h>
|
#include <nn/crypto/crypto_SwAesCtrContext.h>
|
||||||
#include <nn/mcu.h>
|
#include <nn/mcu.h>
|
||||||
|
#include <nn/pl/CTR/pl_PlayHistoryApi.h>
|
||||||
|
#include <nn/pl/CTR/pl_PlayHistoryApiSysmenu.h>
|
||||||
|
|
||||||
#include "Exporter.h"
|
#include "Exporter.h"
|
||||||
#include "CommonLogger.h"
|
#include "CommonLogger.h"
|
||||||
@ -507,6 +509,11 @@ void DeleteNimSaveData()
|
|||||||
common::SdMountManager::Unmount();
|
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()
|
void ExportData()
|
||||||
{
|
{
|
||||||
@ -538,6 +545,9 @@ void ExportData()
|
|||||||
// プレイ履歴をSDに書き出す
|
// プレイ履歴をSDに書き出す
|
||||||
//WritePlayHistory();
|
//WritePlayHistory();
|
||||||
|
|
||||||
|
// 電源断の履歴をptmに追加する
|
||||||
|
AddShutDownPtmEvent();
|
||||||
|
|
||||||
// RTCをSDに書き出す
|
// RTCをSDに書き出す
|
||||||
WriteMcuRtcData();
|
WriteMcuRtcData();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user