[Example Plugin] Added second function

This commit is contained in:
Maschell 2018-02-04 18:03:58 +01:00
parent 72fb6ee5ea
commit e901ad77cf
2 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ loader/*.elf
example_plugin/bin/* example_plugin/bin/*
example_plugin/build/* example_plugin/build/*
example_plugin_pic/* example_plugin_pic/*
loader/WiiUPluginLoader.cscope_file_list

View File

@ -7,6 +7,7 @@ WUPS_MODULE_AUTHOR("Maschell");
WUPS_MODULE_LICENSE("BSD"); WUPS_MODULE_LICENSE("BSD");
int func(void); int func(void);
int func2(void);
static int value = 15; static int value = 15;
@ -16,4 +17,12 @@ static int my_func(void)
return 4 * value * res; return 4 * value * res;
} }
WUPS_MUST_REPLACE(func,WUPS_LOADER_LIBRARY_COREINIT, my_func); 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);