mirror of
https://github.com/wiiu-env/wiiload_plugin.git
synced 2024-11-22 02:29:15 +01:00
Init WUPSBackend on plugin init
This commit is contained in:
parent
38355c1c3e
commit
fb97f0353d
11
src/main.cpp
11
src/main.cpp
@ -9,6 +9,7 @@
|
||||
#include <rpxloader/rpxloader.h>
|
||||
#include <wups.h>
|
||||
#include <wups/config/WUPSConfigItemBoolean.h>
|
||||
#include <wups_backend/api.h>
|
||||
|
||||
WUPS_PLUGIN_NAME("Wiiload");
|
||||
WUPS_PLUGIN_DESCRIPTION("Wiiload Server");
|
||||
@ -35,10 +36,20 @@ INITIALIZE_PLUGIN() {
|
||||
} else {
|
||||
NotificationModule_SetDefaultValue(NOTIFICATION_MODULE_NOTIFICATION_TYPE_ERROR, NOTIFICATION_MODULE_DEFAULT_OPTION_DURATION_BEFORE_FADE_OUT, 10.0f);
|
||||
}
|
||||
PluginBackendApiErrorType res2;
|
||||
if ((res2 = WUPSBackend_InitLibrary()) != PLUGIN_BACKEND_API_ERROR_NONE) {
|
||||
DEBUG_FUNCTION_LINE_WARN("Failed to init WUPSBackend Api: %s", WUPSBackend_GetStatusStr(res2));
|
||||
}
|
||||
|
||||
InitConfigAndStorage();
|
||||
}
|
||||
|
||||
DEINITIALIZE_PLUGIN() {
|
||||
RPXLoader_DeInitLibrary();
|
||||
NotificationModule_DeInitLibrary();
|
||||
WUPSBackend_DeInitLibrary();
|
||||
}
|
||||
|
||||
/* Entry point */
|
||||
ON_APPLICATION_START() {
|
||||
initLogging();
|
||||
|
Loading…
Reference in New Issue
Block a user