Use api.h in PluginData destructor

This commit is contained in:
Maschell 2024-03-23 19:12:11 +01:00
parent 0a2e837b5b
commit 2f137293b9

View File

@ -16,8 +16,8 @@
****************************************************************************/ ****************************************************************************/
#include "wups_backend/PluginData.h" #include "wups_backend/PluginData.h"
#include "imports.h"
#include "logger.h" #include "logger.h"
#include "wups_backend/api.h"
#include <coreinit/debug.h> #include <coreinit/debug.h>
using namespace WUPSBackend; using namespace WUPSBackend;
@ -28,7 +28,7 @@ PluginData::PluginData(uint32_t handle) {
PluginData::~PluginData() { PluginData::~PluginData() {
if (handle != 0) { if (handle != 0) {
if (WUPSDeletePluginData(&handle, 1) != PLUGIN_BACKEND_API_ERROR_NONE) { if (WUPSBackend_DeletePluginData(&handle, 1) != PLUGIN_BACKEND_API_ERROR_NONE) {
DEBUG_FUNCTION_LINE_ERR("Failed to delete plugin data"); DEBUG_FUNCTION_LINE_ERR("Failed to delete plugin data");
} }
} }