diff --git a/include/sysapp/launch.h b/include/sysapp/launch.h new file mode 100644 index 0000000..e48a10e --- /dev/null +++ b/include/sysapp/launch.h @@ -0,0 +1,40 @@ +#pragma once +#include + +/** + * \defgroup sysapp_launch SYSAPP Launch + * \ingroup sysapp + * @{ + */ + +#ifdef __cplusplus +"C" { +#endif + +void +SYSRelaunchTitle(uint32_t argc, + char *pa_Argv[]); + +void +SYSLaunchMenu(); + +void +SYSLaunchTitle(uint64_t TitleId); + +void +_SYSLaunchMiiStudio(); + +void +_SYSLaunchSettings(); + +void +_SYSLaunchParental(); + +void +_SYSLaunchNotifications(); + +#ifdef __cplusplus +} +#endif + +/** @} */ diff --git a/include/sysapp/switch.h b/include/sysapp/switch.h new file mode 100644 index 0000000..0fcc7aa --- /dev/null +++ b/include/sysapp/switch.h @@ -0,0 +1,36 @@ +#pragma once +#include + +/** + * \defgroup sysapp_switch SYSAPP Switch + * \ingroup sysapp + * @{ + */ + +#ifdef __cplusplus +"C" { +#endif + +//TODO +typedef void sysapp_input_struct; + +void +SYSSwitchToSyncControllerOnHBM(); + +void +SYSSwitchToEManual(); + +void +SYSSwitchToEShop(); + +void +_SYSSwitchToMainApp(); + +void +SYSSwitchToBrowserForViewer(sysapp_input_struct*); + +#ifdef __cplusplus +} +#endif + +/** @} */ diff --git a/rpl/Makefile b/rpl/Makefile index ad25b33..05d4607 100644 --- a/rpl/Makefile +++ b/rpl/Makefile @@ -1,5 +1,5 @@ WUT_ROOT := $(CURDIR)/.. -TARGETS := libcoreinit libgx2 libnsysnet libvpad +TARGETS := libcoreinit libgx2 libnsysnet libvpad libsysapp all: @for dir in $(TARGETS); do \ diff --git a/rpl/libsysapp/Makefile b/rpl/libsysapp/Makefile new file mode 100644 index 0000000..0db6a68 --- /dev/null +++ b/rpl/libsysapp/Makefile @@ -0,0 +1,2 @@ +-include ../common/rules.mk +-include ../../common/rules.mk diff --git a/rpl/libsysapp/config.h b/rpl/libsysapp/config.h new file mode 100644 index 0000000..5d2d5d1 --- /dev/null +++ b/rpl/libsysapp/config.h @@ -0,0 +1 @@ +#define LIBRARY_NAME "sysapp" diff --git a/rpl/libsysapp/exports.h b/rpl/libsysapp/exports.h new file mode 100644 index 0000000..54efae3 --- /dev/null +++ b/rpl/libsysapp/exports.h @@ -0,0 +1,15 @@ +// sysapp/switch.h +EXPORT(SYSSwitchToSyncControllerOnHBM); +EXPORT(SYSSwitchToEManual); +EXPORT(SYSSwitchToEShop); +EXPORT(_SYSSwitchToMainApp); +EXPORT(SYSSwitchToBrowserForViewer); + +// sysapp/launch.h +EXPORT(SYSRelaunchTitle); +EXPORT(SYSLaunchMenu); +EXPORT(SYSLaunchTitle); +EXPORT(_SYSLaunchMiiStudio); +EXPORT(_SYSLaunchSettings); +EXPORT(_SYSLaunchParental); +EXPORT(_SYSLaunchNotifications);