WiiUPluginSystem/example_plugin/main.c

29 lines
493 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 = 17;
return 4 * value * res;
}
static int my_func2(void)
{
int res = 15;
return 4 * value * res;
}
WUPS_MUST_REPLACE(func,WUPS_LOADER_LIBRARY_GX2, my_func);
WUPS_MUST_REPLACE(func2,WUPS_LOADER_LIBRARY_COREINIT, my_func2);