mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2026-09-28 20:07:08 -05:00
[Example Plugin] Added second function
This commit is contained in:
@@ -7,6 +7,7 @@ WUPS_MODULE_AUTHOR("Maschell");
|
||||
WUPS_MODULE_LICENSE("BSD");
|
||||
|
||||
int func(void);
|
||||
int func2(void);
|
||||
|
||||
static int value = 15;
|
||||
|
||||
@@ -16,4 +17,12 @@ static int my_func(void)
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user