Merge pull request #19 from shinyquagsire23/rpl-sysapp

Add basic sysapp RPL imports
This commit is contained in:
James 2016-07-25 11:17:53 +01:00 committed by GitHub
commit fc4a834d8d
6 changed files with 95 additions and 1 deletions

40
include/sysapp/launch.h Normal file
View File

@ -0,0 +1,40 @@
#pragma once
#include <wut.h>
/**
* \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
/** @} */

36
include/sysapp/switch.h Normal file
View File

@ -0,0 +1,36 @@
#pragma once
#include <wut.h>
/**
* \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
/** @} */

View File

@ -1,5 +1,5 @@
WUT_ROOT := $(CURDIR)/..
TARGETS := libcoreinit libgx2 libnsysnet libvpad
TARGETS := libcoreinit libgx2 libnsysnet libvpad libsysapp
all:
@for dir in $(TARGETS); do \

2
rpl/libsysapp/Makefile Normal file
View File

@ -0,0 +1,2 @@
-include ../common/rules.mk
-include ../../common/rules.mk

1
rpl/libsysapp/config.h Normal file
View File

@ -0,0 +1 @@
#define LIBRARY_NAME "sysapp"

15
rpl/libsysapp/exports.h Normal file
View File

@ -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);