diff --git a/include/nn/cmpt.h b/include/nn/cmpt.h new file mode 100644 index 00000000..c59e7597 --- /dev/null +++ b/include/nn/cmpt.h @@ -0,0 +1,8 @@ +#pragma once + +/** + * \defgroup nn_cmpt nn_cmpt + * Wii backwards compatibility (vWii) + */ + +#include diff --git a/include/nn/cmpt/cmpt.h b/include/nn/cmpt/cmpt.h new file mode 100644 index 00000000..48501ceb --- /dev/null +++ b/include/nn/cmpt/cmpt.h @@ -0,0 +1,80 @@ +#pragma once +#include + +/** + * \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 + +/** @} */ diff --git a/tests/test_compile_headers_common/test_compile_headers_list.h b/tests/test_compile_headers_common/test_compile_headers_list.h index 615b5d1f..87d531e4 100644 --- a/tests/test_compile_headers_common/test_compile_headers_list.h +++ b/tests/test_compile_headers_common/test_compile_headers_list.h @@ -84,6 +84,7 @@ #include #include #include +#include #include #include #include @@ -92,6 +93,7 @@ #include #include #include +#include #include #include #include