From 72ec4f790f36f0d3032daa8c0ad5ec5cabce0a56 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 26 Apr 2024 14:33:58 +0200 Subject: [PATCH] nn_ccr: Add CCRSysSetInitBootFlag and CCRSysInitializeSettings --- include/nn/ccr/sys.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/nn/ccr/sys.h b/include/nn/ccr/sys.h index d38beaa1..17c812b7 100644 --- a/include/nn/ccr/sys.h +++ b/include/nn/ccr/sys.h @@ -25,6 +25,13 @@ typedef enum CCRSysPairingState CCR_SYS_PAIRING_TIMED_OUT = 2, } CCRSysPairingState; +typedef enum CCRSysInitBootFlag +{ + CCR_SYS_BOOT_FLAG_NONE = 0, + //! Shows "Turn on the TV and Wii U Console.." text on next DRC boot + CCR_SYS_BOOT_FLAG_FIRST_BOOT = 1, +} CCRSysInitBootFlag; + struct CCRSysUpdateState { uint32_t state; @@ -269,6 +276,16 @@ CCRSysSetVersionCheckFlag(uint32_t flag); int32_t CCRSysCaffeineSetCaffeineSlot(uint32_t slot); +int32_t +CCRSysSetInitBootFlag(CCRSysInitBootFlag flag); + +/** + * Resets the DRC (It'll show "Turn on the TV and Wii U console" until paired) + * @return 0 on success, -1 on error. + */ +int32_t +CCRSysInitializeSettings(); + #ifdef __cplusplus } #endif