mirror of
https://github.com/wiiu-env/libwupsbackend.git
synced 2024-11-22 01:39:18 +01:00
Use api.h in PluginData destructor
This commit is contained in:
parent
0a2e837b5b
commit
2f137293b9
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user