diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-09-28 07:47:51 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2022-10-02 19:34:14 +0200 |
commit | d9d566bd3f6cb8fd4f8d3d2d17851e0568ddf946 (patch) | |
tree | 17d2e29dbbd05495e3907acfa8d580605b74b1fb /src/core/hle/service/nfp/nfp_device.h | |
parent | nfp: Multiple fixes against HW (diff) | |
download | yuzu-d9d566bd3f6cb8fd4f8d3d2d17851e0568ddf946.tar yuzu-d9d566bd3f6cb8fd4f8d3d2d17851e0568ddf946.tar.gz yuzu-d9d566bd3f6cb8fd4f8d3d2d17851e0568ddf946.tar.bz2 yuzu-d9d566bd3f6cb8fd4f8d3d2d17851e0568ddf946.tar.lz yuzu-d9d566bd3f6cb8fd4f8d3d2d17851e0568ddf946.tar.xz yuzu-d9d566bd3f6cb8fd4f8d3d2d17851e0568ddf946.tar.zst yuzu-d9d566bd3f6cb8fd4f8d3d2d17851e0568ddf946.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nfp/nfp_device.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/service/nfp/nfp_device.h b/src/core/hle/service/nfp/nfp_device.h index c020506a6..a5b72cf19 100644 --- a/src/core/hle/service/nfp/nfp_device.h +++ b/src/core/hle/service/nfp/nfp_device.h @@ -40,7 +40,7 @@ public: Result StartDetection(s32 protocol_); Result StopDetection(); - Result Mount(); + Result Mount(MountTarget mount_target); Result Unmount(); Result Flush(); @@ -55,7 +55,7 @@ public: Result OpenApplicationArea(u32 access_id); Result GetApplicationArea(std::vector<u8>& data) const; - Result SetApplicationArea(const std::vector<u8>& data); + Result SetApplicationArea(std::span<const u8> data); Result CreateApplicationArea(u32 access_id, std::span<const u8> data); Result RecreateApplicationArea(u32 access_id, std::span<const u8> data); Result DeleteApplicationArea(); @@ -70,7 +70,7 @@ public: private: void NpadUpdate(Core::HID::ControllerTriggerType type); - bool LoadAmiibo(const std::vector<u8>& data); + bool LoadAmiibo(std::span<const u8> data); void CloseAmiibo(); AmiiboName GetAmiiboName(const AmiiboSettings& settings) const; @@ -88,8 +88,10 @@ private: Kernel::KEvent* availability_change_event = nullptr; bool is_data_moddified{}; + bool is_app_area_open{}; s32 protocol{}; s64 current_posix_time{}; + MountTarget mount_target{MountTarget::None}; DeviceState device_state{DeviceState::Unavailable}; NTAG215File tag_data{}; |