CCR: Add missing function CCRSysCaffeineGetAppLaunchParam and CCRSysCaffeineBootCheck

This commit is contained in:
Maschell 2021-12-28 16:52:23 +01:00 committed by fincs
parent c3946c3ca2
commit 8165c527fd
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,28 @@
#pragma once
#include <wut.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct CCRAppLaunchParam CCRAppLaunchParam;
struct WUT_PACKED CCRAppLaunchParam
{
uint64_t titleId;
char uuid[16];
WUT_UNKNOWN_BYTES(0xE7);
};
WUT_CHECK_OFFSET(CCRAppLaunchParam, 0x00, titleId);
WUT_CHECK_OFFSET(CCRAppLaunchParam, 0x08, uuid);
WUT_CHECK_SIZE(CCRAppLaunchParam, 0xFF);
void
CCRSysCaffeineGetAppLaunchParam(CCRAppLaunchParam * data);
uint32_t
CCRSysCaffeineBootCheck();
#ifdef __cplusplus
}
#endif

View File

@ -83,6 +83,7 @@
#include <nn/acp/save.h>
#include <nn/acp/title.h>
#include <nn/act/client_cpp.h>
#include <nn/ccr/sys_caffeine.h>
#include <nn/ffl/miidata.h>
#include <nn/pdm/pdm_c.h>
#include <nn/pdm/pdm_cpp.h>