mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-11-16 23:59:24 +01:00
32 lines
578 B
C
32 lines
578 B
C
|
#include <wups.h>
|
||
|
#include <malloc.h>
|
||
|
#include <string.h>
|
||
|
#include "dynamic_libs/os_functions.h"
|
||
|
#include "dynamic_libs/socket_functions.h"
|
||
|
#include "utils/logger.h"
|
||
|
|
||
|
|
||
|
WUPS_MODULE_NAME("test module");
|
||
|
WUPS_MODULE_VERSION("v1.0");
|
||
|
WUPS_MODULE_AUTHOR("Maschell");
|
||
|
WUPS_MODULE_LICENSE("BSD");
|
||
|
|
||
|
int func(void);
|
||
|
|
||
|
|
||
|
static int my_func2(void)
|
||
|
{
|
||
|
InitOSFunctionPointers();
|
||
|
InitSocketFunctionPointers();
|
||
|
|
||
|
log_init();
|
||
|
|
||
|
//log_printf is not working.
|
||
|
log_print("Logging from custom function.\n");
|
||
|
|
||
|
return 43;
|
||
|
}
|
||
|
|
||
|
|
||
|
WUPS_MUST_REPLACE(func,WUPS_LOADER_LIBRARY_GX2, my_func2);
|