Add all the files

This commit is contained in:
Exzap 2022-08-22 22:21:23 +02:00
parent e3db07a16a
commit d60742f52b
1445 changed files with 430238 additions and 0 deletions

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