mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-09-29 01:28:36 +02:00
Update the example plugin to prefer the LoggingModule
This commit is contained in:
parent
2721e7920b
commit
79160a0747
@ -6,6 +6,8 @@
|
|||||||
#include <coreinit/time.h>
|
#include <coreinit/time.h>
|
||||||
#include <coreinit/thread.h>
|
#include <coreinit/thread.h>
|
||||||
#include <coreinit/filesystem.h>
|
#include <coreinit/filesystem.h>
|
||||||
|
#include <whb/log_cafe.h>
|
||||||
|
#include <whb/log_module.h>
|
||||||
#include <whb/log_udp.h>
|
#include <whb/log_udp.h>
|
||||||
#include <wups/config/WUPSConfigItemBoolean.h>
|
#include <wups/config/WUPSConfigItemBoolean.h>
|
||||||
|
|
||||||
@ -34,7 +36,10 @@ bool logFSOpen = true;
|
|||||||
Get's called ONCE when the loader exits, but BEFORE the ON_APPLICATION_START gets called or functions are overridden.
|
Get's called ONCE when the loader exits, but BEFORE the ON_APPLICATION_START gets called or functions are overridden.
|
||||||
**/
|
**/
|
||||||
INITIALIZE_PLUGIN(){
|
INITIALIZE_PLUGIN(){
|
||||||
WHBLogUdpInit();
|
if (!WHBLogModuleInit()) {
|
||||||
|
WHBLogCafeInit();
|
||||||
|
WHBLogUdpInit();
|
||||||
|
}
|
||||||
DEBUG_FUNCTION_LINE("INITIALIZE_PLUGIN of example_plugin!");
|
DEBUG_FUNCTION_LINE("INITIALIZE_PLUGIN of example_plugin!");
|
||||||
|
|
||||||
// Open storage to read values
|
// Open storage to read values
|
||||||
@ -64,7 +69,10 @@ DEINITIALIZE_PLUGIN(){
|
|||||||
Make sure to initialize all functions you're using in the overridden functions!
|
Make sure to initialize all functions you're using in the overridden functions!
|
||||||
**/
|
**/
|
||||||
ON_APPLICATION_START(){
|
ON_APPLICATION_START(){
|
||||||
WHBLogUdpInit();
|
if (!WHBLogModuleInit()) {
|
||||||
|
WHBLogCafeInit();
|
||||||
|
WHBLogUdpInit();
|
||||||
|
}
|
||||||
|
|
||||||
DEBUG_FUNCTION_LINE("ON_APPLICATION_START of example_plugin!");
|
DEBUG_FUNCTION_LINE("ON_APPLICATION_START of example_plugin!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user