summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfp/nfp_user.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_user.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_user.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/core/hle/service/nfp/nfp_user.cpp b/src/core/hle/service/nfp/nfp_user.cpp
index 33e2ef518..3f7f17598 100644
--- a/src/core/hle/service/nfp/nfp_user.cpp
+++ b/src/core/hle/service/nfp/nfp_user.cpp
@@ -1,9 +1,6 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <array>
-#include <atomic>
-
#include "common/logging/log.h"
#include "core/core.h"
#include "core/hid/hid_types.h"
@@ -55,8 +52,12 @@ IUser::IUser(Core::System& system_)
}
}
+IUser ::~IUser() {
+ availability_change_event->Close();
+}
+
void IUser::Initialize(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFC, "called");
+ LOG_INFO(Service_NFP, "called");
state = State::Initialized;
@@ -64,7 +65,7 @@ void IUser::Initialize(Kernel::HLERequestContext& ctx) {
device->Initialize();
}
- IPC::ResponseBuilder rb{ctx, 2, 0};
+ IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
@@ -551,9 +552,9 @@ void IUser::AttachDeactivateEvent(Kernel::HLERequestContext& ctx) {
}
void IUser::GetState(Kernel::HLERequestContext& ctx) {
- LOG_DEBUG(Service_NFC, "called");
+ LOG_DEBUG(Service_NFP, "called");
- IPC::ResponseBuilder rb{ctx, 3, 0};
+ IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.PushEnum(state);
}