diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-10 01:56:11 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-06 01:40:51 +0200 |
commit | ab704acab80d17f9a8e34dcbb753d60de2a86f86 (patch) | |
tree | 41b84d29f755f19f2222bef358631f88c6f2152f /src/core/hle/service/nfp/nfp.cpp | |
parent | hle: kernel: Use unique_ptr for suspend and dummy threads. (diff) | |
download | yuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.tar yuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.tar.gz yuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.tar.bz2 yuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.tar.lz yuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.tar.xz yuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.tar.zst yuzu-ab704acab80d17f9a8e34dcbb753d60de2a86f86.zip |
Diffstat (limited to 'src/core/hle/service/nfp/nfp.cpp')
-rw-r--r-- | src/core/hle/service/nfp/nfp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp index 164b8b9cd..d1cf01390 100644 --- a/src/core/hle/service/nfp/nfp.cpp +++ b/src/core/hle/service/nfp/nfp.cpp @@ -24,6 +24,7 @@ constexpr ResultCode ERR_NO_APPLICATION_AREA(ErrorModule::NFP, 152); Module::Interface::Interface(std::shared_ptr<Module> module_, Core::System& system_, const char* name) : ServiceFramework{system_, name}, nfc_tag_load{system.Kernel()}, module{std::move(module_)} { + Kernel::KAutoObject::Create(std::addressof(nfc_tag_load)); nfc_tag_load.Initialize("IUser:NFCTagDetected"); } @@ -63,6 +64,9 @@ public: }; RegisterHandlers(functions); + Kernel::KAutoObject::Create(std::addressof(deactivate_event)); + Kernel::KAutoObject::Create(std::addressof(availability_change_event)); + deactivate_event.Initialize("IUser:DeactivateEvent"); availability_change_event.Initialize("IUser:AvailabilityChangeEvent"); } |