WiiUPluginSystem/example_plugin/main.c
2018-02-04 18:03:58 +01:00

29 lines
501 B
C

#include <wups.h>
#include <string.h>
WUPS_MODULE_NAME("test module");
WUPS_MODULE_VERSION("v1.0");
WUPS_MODULE_AUTHOR("Maschell");
WUPS_MODULE_LICENSE("BSD");
int func(void);
int func2(void);
static int value = 15;
static int my_func(void)
{
int res = func();
return 4 * value * res;
}
static int my_func2(void)
{
int res = func();
return 4 * value * res;
}
WUPS_MUST_REPLACE(func,WUPS_LOADER_LIBRARY_GX2, my_func);
WUPS_MUST_REPLACE(func2,WUPS_LOADER_LIBRARY_COREINIT, my_func2);