#include "main.h" #include "config.h" #include "retain_vars.hpp" #include "thread.h" #include "utils/WUPSConfigItemButtonCombo.h" #include "utils/logger.h" #include "utils/utils.h" #include #include #include // Mandatory plugin information. WUPS_PLUGIN_NAME("Screenshot plugin"); WUPS_PLUGIN_DESCRIPTION("This plugin allows you to make screenshots that will be saved to the sd card"); WUPS_PLUGIN_VERSION(VERSION_FULL); WUPS_PLUGIN_AUTHOR("Maschell"); WUPS_PLUGIN_LICENSE("GPL"); // FS Access WUPS_USE_WUT_DEVOPTAB(); // Gets called once the loader exists. INITIALIZE_PLUGIN() { initLogging(); NotificationModuleStatus res; if ((res = NotificationModule_InitLibrary()) != NOTIFICATION_MODULE_RESULT_SUCCESS) { DEBUG_FUNCTION_LINE_ERR("NotificationModule_InitLibrary failed: %s", NotificationModule_GetStatusStr(res)); } InitConfig(); } DEINITIALIZE_PLUGIN() { NotificationModule_DeInitLibrary(); } // Called whenever an application was started. ON_APPLICATION_START() { initLogging(); gShortNameEn = GetSanitizedNameOfCurrentApplication(); startFSIOThreads(); VPADSetTVMenuInvalid(VPAD_CHAN_0, true); } ON_APPLICATION_REQUESTS_EXIT() { stopFSIOThreads(); deinitLogging(); }