summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfp/nfp_device.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-11-09 20:04:11 +0100
committergerman77 <juangerman-13@hotmail.com>2022-11-19 15:51:59 +0100
commit327d225c3e9da802a31735edc113891960942a3e (patch)
tree7febe12f94deba0de9217cff8ee48bc14991aead /src/core/hle/service/nfp/nfp_device.cpp
parentMerge pull request #9226 from Kelebek1/regs_regression (diff)
downloadyuzu-327d225c3e9da802a31735edc113891960942a3e.tar
yuzu-327d225c3e9da802a31735edc113891960942a3e.tar.gz
yuzu-327d225c3e9da802a31735edc113891960942a3e.tar.bz2
yuzu-327d225c3e9da802a31735edc113891960942a3e.tar.lz
yuzu-327d225c3e9da802a31735edc113891960942a3e.tar.xz
yuzu-327d225c3e9da802a31735edc113891960942a3e.tar.zst
yuzu-327d225c3e9da802a31735edc113891960942a3e.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nfp/nfp_device.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/service/nfp/nfp_device.cpp b/src/core/hle/service/nfp/nfp_device.cpp
index b19672560..296603764 100644
--- a/src/core/hle/service/nfp/nfp_device.cpp
+++ b/src/core/hle/service/nfp/nfp_device.cpp
@@ -2,10 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <array>
-#include <atomic>
-#include "common/fs/file.h"
-#include "common/fs/path_util.h"
#include "common/input.h"
#include "common/logging/log.h"
#include "common/string_util.h"
@@ -19,7 +16,6 @@
#include "core/hle/service/mii/mii_manager.h"
#include "core/hle/service/mii/types.h"
#include "core/hle/service/nfp/amiibo_crypto.h"
-#include "core/hle/service/nfp/nfp.h"
#include "core/hle/service/nfp/nfp_device.h"
#include "core/hle/service/nfp/nfp_result.h"
#include "core/hle/service/nfp/nfp_user.h"
@@ -49,6 +45,8 @@ NfpDevice::NfpDevice(Core::HID::NpadIdType npad_id_, Core::System& system_,
}
NfpDevice::~NfpDevice() {
+ activate_event->Close();
+ deactivate_event->Close();
if (!is_controller_set) {
return;
}