mirror of
https://github.com/wiiu-env/WiiUModuleSystem.git
synced 2024-11-22 01:39:19 +01:00
The WUMS_INITIALIZE now has an argument which provides a pointer to the module_information_t struct
This commit is contained in:
parent
c88c061613
commit
090efd9ab0
@ -26,6 +26,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "defines/module_defines.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -51,13 +52,16 @@ typedef struct wums_hook_t {
|
||||
const void *target; /* Address of our own, new function */
|
||||
} wums_hook_t;
|
||||
|
||||
typedef struct wums_app_init_args_t {
|
||||
module_information_t* module_information;
|
||||
} wums_app_init_args_t;
|
||||
|
||||
#define WUMS_INITIALIZE() \
|
||||
#define WUMS_INITIALIZE(myargs) \
|
||||
WUMS_INIT_WUT(); \
|
||||
WUMS_FINI_WUT(); \
|
||||
void __wums__init(void);\
|
||||
void __wums__init(wums_app_init_args_t);\
|
||||
WUMS_HOOK_EX(WUMS_HOOK_INIT, __wums__init); \
|
||||
void __wums__init()
|
||||
void __wums__init(wums_app_init_args_t myargs)
|
||||
|
||||
#define WUMS_APPLICATION_STARTS() \
|
||||
void __wums_start(void);\
|
||||
|
Loading…
Reference in New Issue
Block a user