mirror of
https://github.com/devkitPro/wut.git
synced 2026-03-21 17:34:47 -05:00
nn_cmpt: Add functions
This commit is contained in:
parent
92710d4357
commit
f2a7fff3af
8
include/nn/cmpt.h
Normal file
8
include/nn/cmpt.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
/**
|
||||
* \defgroup nn_cmpt nn_cmpt
|
||||
* Wii backwards compatibility (vWii)
|
||||
*/
|
||||
|
||||
#include <nn/cmpt/cmpt.h>
|
||||
80
include/nn/cmpt/cmpt.h
Normal file
80
include/nn/cmpt/cmpt.h
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
#pragma once
|
||||
#include <wut.h>
|
||||
|
||||
/**
|
||||
* \defgroup nn_cmpt
|
||||
* \ingroup nn_cmpt
|
||||
* Wii backwards compatibility (vWii)
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum CmptScreenType {
|
||||
CMPT_SCREEN_TYPE_TV = 1,
|
||||
CMPT_SCREEN_TYPE_DRC,
|
||||
CMPT_SCREEN_TYPE_BOTH,
|
||||
} CmptScreenType;
|
||||
|
||||
/**
|
||||
* Gets the required size which needs to be allocated for the "dataBuffer".
|
||||
* The allocated buffer needs to be aligned by 0x40.
|
||||
*
|
||||
* \return
|
||||
* 0 on success.
|
||||
*/
|
||||
int32_t
|
||||
CMPTGetDataSize(uint32_t* outSize);
|
||||
|
||||
/**
|
||||
* Launches the specified vWii title.
|
||||
*
|
||||
* \return
|
||||
* 0 on success.
|
||||
*/
|
||||
int32_t
|
||||
CMPTLaunchTitle(void* dataBuffer, uint32_t bufferSize, uint32_t titleId_low, uint32_t titleId_high);
|
||||
|
||||
/**
|
||||
* Launches vWii System Menu.
|
||||
*
|
||||
* \return
|
||||
* 0 on success.
|
||||
*/
|
||||
int32_t
|
||||
CMPTLaunchMenu(void* dataBuffer, uint32_t bufferSize);
|
||||
|
||||
/**
|
||||
* Launches vWii Data Management.
|
||||
*
|
||||
* \return
|
||||
* 0 on success.
|
||||
*/
|
||||
int32_t
|
||||
CMPTLaunchDataManager(void* dataBuffer, uint32_t bufferSize);
|
||||
|
||||
/**
|
||||
* Sets the screen type.
|
||||
*
|
||||
* \return
|
||||
* 0 on success.
|
||||
*/
|
||||
int32_t
|
||||
CMPTAcctSetScreenType(CmptScreenType type);
|
||||
|
||||
/**
|
||||
* Checks if the current screen configuration is valid.
|
||||
*
|
||||
* \return
|
||||
* 0 on success.
|
||||
*/
|
||||
int32_t
|
||||
CMPTCheckScreenState(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
@ -84,6 +84,7 @@
|
|||
#include <nn/acp/title.h>
|
||||
#include <nn/act/client_cpp.h>
|
||||
#include <nn/ccr/sys_caffeine.h>
|
||||
#include <nn/cmpt/cmpt.h>
|
||||
#include <nn/ffl/miidata.h>
|
||||
#include <nn/pdm/pdm_c.h>
|
||||
#include <nn/pdm/pdm_cpp.h>
|
||||
|
|
@ -92,6 +93,7 @@
|
|||
#include <nn/ac.h>
|
||||
#include <nn/acp.h>
|
||||
#include <nn/act.h>
|
||||
#include <nn/cmpt.h>
|
||||
#include <nn/result.h>
|
||||
#include <nn/sl.h>
|
||||
#include <nn/pdm.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user