mirror of
https://github.com/wiiu-env/WiiUModuleSystem.git
synced 2024-12-01 13:54:15 +01:00
Add support for lite modules
This commit is contained in:
parent
e10a54b72a
commit
cae2c761e0
@ -61,6 +61,7 @@ typedef struct module_information_single_t {
|
|||||||
} module_information_single_t;
|
} module_information_single_t;
|
||||||
|
|
||||||
#define MODULE_INFORMATION_VERSION 0x0000000E
|
#define MODULE_INFORMATION_VERSION 0x0000000E
|
||||||
|
#define MODULE_LITE_INFORMATION_VERSION 0x80000001
|
||||||
|
|
||||||
typedef struct module_information_t {
|
typedef struct module_information_t {
|
||||||
uint32_t version;
|
uint32_t version;
|
||||||
@ -69,6 +70,11 @@ typedef struct module_information_t {
|
|||||||
uint32_t number_acquired_rpls;
|
uint32_t number_acquired_rpls;
|
||||||
uint32_t * acquired_rpls;
|
uint32_t * acquired_rpls;
|
||||||
} module_information_t;
|
} module_information_t;
|
||||||
|
|
||||||
|
typedef struct module_lite_information_t {
|
||||||
|
uint32_t version;
|
||||||
|
} module_lite_information_t;
|
||||||
|
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -58,6 +58,7 @@ typedef enum wums_hook_type_t {
|
|||||||
WUMS_HOOK_APPLICATION_ENDS,
|
WUMS_HOOK_APPLICATION_ENDS,
|
||||||
WUMS_HOOK_RELOCATIONS_DONE,
|
WUMS_HOOK_RELOCATIONS_DONE,
|
||||||
WUMS_HOOK_APPLICATION_REQUESTS_EXIT,
|
WUMS_HOOK_APPLICATION_REQUESTS_EXIT,
|
||||||
|
WUMS_HOOK_DEINIT,
|
||||||
} wums_hook_type_t;
|
} wums_hook_type_t;
|
||||||
|
|
||||||
typedef struct wums_hook_t {
|
typedef struct wums_hook_t {
|
||||||
@ -78,6 +79,11 @@ typedef struct wums_relocs_done_args_t {
|
|||||||
WUMS_HOOK_EX(WUMS_HOOK_INIT, __wums__init); \
|
WUMS_HOOK_EX(WUMS_HOOK_INIT, __wums__init); \
|
||||||
void __wums__init(wums_app_init_args_t myargs)
|
void __wums__init(wums_app_init_args_t myargs)
|
||||||
|
|
||||||
|
#define WUMS_DEINITIALIZE(myargs) \
|
||||||
|
void __wums__deinit(); \
|
||||||
|
WUMS_HOOK_EX(WUMS_HOOK_DEINIT, __wums__deinit); \
|
||||||
|
void __wums__deinit()
|
||||||
|
|
||||||
#define WUMS_APPLICATION_STARTS() \
|
#define WUMS_APPLICATION_STARTS() \
|
||||||
void __wums_start(void); \
|
void __wums_start(void); \
|
||||||
WUMS_HOOK_EX(WUMS_HOOK_APPLICATION_STARTS, __wums_start); \
|
WUMS_HOOK_EX(WUMS_HOOK_APPLICATION_STARTS, __wums_start); \
|
||||||
|
@ -39,9 +39,9 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define WUMS_MODULE_EXPORT_NAME(x) \
|
#define WUMS_MODULE_EXPORT_NAME_EX(x, version) \
|
||||||
WUMS_META(export_name, x); \
|
WUMS_META(export_name, x); \
|
||||||
WUMS_META(wum, "0.3.1"); \
|
WUMS_META(wum, version); \
|
||||||
WUMS_USE_WUT_MALLOC(); \
|
WUMS_USE_WUT_MALLOC(); \
|
||||||
WUMS_USE_WUT_SOCKETS(); \
|
WUMS_USE_WUT_SOCKETS(); \
|
||||||
WUMS_USE_WUT_NEWLIB(); \
|
WUMS_USE_WUT_NEWLIB(); \
|
||||||
@ -56,6 +56,17 @@ extern "C" {
|
|||||||
} \
|
} \
|
||||||
WUMS_META(buildtimestamp, __DATE__ " " __TIME__)
|
WUMS_META(buildtimestamp, __DATE__ " " __TIME__)
|
||||||
|
|
||||||
|
#define WUMS_LITE_MODULE_EXPORT_NAME(x) \
|
||||||
|
WUMS_MODULE_EXPORT_NAME_EX(x, "lite-0.1.0");
|
||||||
|
|
||||||
|
#define WUMS_MODULE_EXPORT_NAME(x) \
|
||||||
|
WUMS_MODULE_EXPORT_NAME_EX(x, "0.3.1");
|
||||||
|
|
||||||
|
#define WUMS_LITE_MODULE_AUTHOR(x) WUMS_META(author, x)
|
||||||
|
#define WUMS_LITE_MODULE_VERSION(x) WUMS_META(version, x)
|
||||||
|
#define WUMS_LITE_MODULE_LICENSE(x) WUMS_META(license, x)
|
||||||
|
#define WUMS_LITE_MODULE_DESCRIPTION(x) WUMS_META(description, x)
|
||||||
|
|
||||||
#define WUMS_MODULE_AUTHOR(x) WUMS_META(author, x)
|
#define WUMS_MODULE_AUTHOR(x) WUMS_META(author, x)
|
||||||
#define WUMS_MODULE_VERSION(x) WUMS_META(version, x)
|
#define WUMS_MODULE_VERSION(x) WUMS_META(version, x)
|
||||||
#define WUMS_MODULE_LICENSE(x) WUMS_META(license, x)
|
#define WUMS_MODULE_LICENSE(x) WUMS_META(license, x)
|
||||||
|
Loading…
Reference in New Issue
Block a user