mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-13 18:28:28 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
42
src/Cafe/OS/libs/nn_pdm/nn_pdm.cpp
Normal file
42
src/Cafe/OS/libs/nn_pdm/nn_pdm.cpp
Normal file
|
@ -0,0 +1,42 @@
|
|||
#include "Cafe/OS/common/OSCommon.h"
|
||||
#include "config/ActiveSettings.h"
|
||||
#include "Cafe/TitleList/TitleId.h"
|
||||
|
||||
#include "Cafe/IOSU/PDM/iosu_pdm.h"
|
||||
|
||||
#include "nn_pdm.h"
|
||||
|
||||
namespace nn
|
||||
{
|
||||
namespace pdm
|
||||
{
|
||||
using PlayDiary = iosu::pdm::PlayDiaryEntry;
|
||||
|
||||
uint32 GetPlayDiaryMaxLength(uint32be* count)
|
||||
{
|
||||
*count = iosu::pdm::NUM_PLAY_DIARY_ENTRIES_MAX;
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32 GetPlayStatsMaxLength(uint32be* count)
|
||||
{
|
||||
*count = iosu::pdm::NUM_PLAY_STATS_ENTRIES;
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32 GetPlayDiary(uint32be* ukn1, PlayDiary* playDiary, uint32 accountSlot, uint32 maxNumEntries)
|
||||
{
|
||||
uint32 numReadEntries = iosu::pdm::GetDiaryEntries(accountSlot, playDiary, maxNumEntries);
|
||||
*ukn1 = numReadEntries;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
cafeExportRegisterFunc(GetPlayDiaryMaxLength, "nn_pdm", "GetPlayDiaryMaxLength__Q2_2nn3pdmFPi", LogType::NN_PDM);
|
||||
cafeExportRegisterFunc(GetPlayStatsMaxLength, "nn_pdm", "GetPlayStatsMaxLength__Q2_2nn3pdmFPi", LogType::NN_PDM);
|
||||
|
||||
cafeExportRegisterFunc(GetPlayDiary, "nn_pdm", "GetPlayDiary__Q2_2nn3pdmFPiPQ3_2nn3pdm9PlayDiaryiT3", LogType::NN_PDM);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue