mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-11-16 15:49:23 +01:00
[Example Plugin] Added second function
This commit is contained in:
parent
72fb6ee5ea
commit
e901ad77cf
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user