mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-09-09 12:29:15 -05:00
Add support for notifications on error
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
#include "StorageUtils.h"
|
||||
#include "NotificationsUtils.h"
|
||||
#include "StringTools.h"
|
||||
#include "fs/CFile.hpp"
|
||||
#include "fs/FSUtils.h"
|
||||
#include "utils.h"
|
||||
#include "utils/json.hpp"
|
||||
#include "utils/logger.h"
|
||||
#include <notifications/notifications.h>
|
||||
|
||||
static void processJson(wups_storage_item_t *items, nlohmann::json json) {
|
||||
if (items == nullptr) {
|
||||
@@ -72,6 +74,8 @@ WUPSStorageError StorageUtils::OpenStorage(const char *plugin_id, wups_storage_i
|
||||
DEBUG_FUNCTION_LINE_ERR("%s", errorMessage.c_str());
|
||||
remove(filePath.c_str());
|
||||
|
||||
DisplayErrorNotificationMessage(errorMessage, 10.0f);
|
||||
|
||||
return WUPS_STORAGE_ERROR_SUCCESS;
|
||||
}
|
||||
} else { // empty or no config exists yet
|
||||
|
||||
Reference in New Issue
Block a user