ButtonComboApi: Use C++ APIs where possible

This commit is contained in:
Maschell
2025-01-01 15:04:42 +01:00
parent 232f51ae68
commit 2db2247806
6 changed files with 59 additions and 75 deletions

View File

@@ -9,7 +9,7 @@
#include "utils/logger.h"
#include "utils/storage/StorageUtils.h"
#include <wups/button_combo.h>
#include <wups/button_combo/api.h>
#include <wups/button_combo_internal.h>
#include <wups/storage.h>
@@ -159,7 +159,7 @@ void CallHook(const PluginContainer &plugin, wups_loader_hook_type_t hook_type)
// clang-format on
if (res != WUPS_BUTTON_COMBO_ERROR_SUCCESS) {
// TODO: More error handling? Notification?
DEBUG_FUNCTION_LINE_ERR("WUPS_LOADER_HOOK_INIT_BUTTON_COMBO failed for plugin %s: %s", plugin.getMetaInformation().getName().c_str(), WUPSButtonComboAPI_GetStatusStr(res));
DEBUG_FUNCTION_LINE_ERR("WUPS_LOADER_HOOK_INIT_BUTTON_COMBO failed for plugin %s: %s", plugin.getMetaInformation().getName().c_str(), WUPSButtonComboAPI::GetStatusStr(res));
}
break;
}