mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 23:11:18 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
38
src/Cafe/IOSU/PDM/iosu_pdm.h
Normal file
38
src/Cafe/IOSU/PDM/iosu_pdm.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
#pragma once
|
||||
|
||||
namespace iosu
|
||||
{
|
||||
namespace pdm
|
||||
{
|
||||
void Initialize();
|
||||
void StartTrackingTime(uint64 titleId);
|
||||
void Stop();
|
||||
|
||||
inline constexpr size_t NUM_PLAY_STATS_ENTRIES = 256;
|
||||
inline constexpr size_t NUM_PLAY_DIARY_ENTRIES_MAX = 18250; // 0x474A
|
||||
|
||||
struct PlayDiaryEntry
|
||||
{
|
||||
uint64be titleId;
|
||||
uint32be ukn08; // probably minutes
|
||||
uint16be dayIndex;
|
||||
uint16be ukn0E;
|
||||
};
|
||||
|
||||
uint32 GetDiaryEntries(uint8 accountSlot, PlayDiaryEntry* diaryEntries, uint32 maxEntries);
|
||||
|
||||
/* Helper for UI game list */
|
||||
struct GameListStat
|
||||
{
|
||||
struct
|
||||
{
|
||||
uint32 year; // if 0 -> never played
|
||||
uint32 month;
|
||||
uint32 day;
|
||||
}last_played;
|
||||
uint32 numMinutesPlayed;
|
||||
};
|
||||
|
||||
bool GetStatForGamelist(uint64 titleId, GameListStat& stat);
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue