diff options
| author | 2020-12-21 17:02:04 -0800 | |
|---|---|---|
| committer | 2021-01-11 14:23:16 -0800 | |
| commit | 8fc6e92ef187d9be177e05cdb94ed55d5339a308 (patch) | |
| tree | d539f28d4503c63cda1d5cc3a84930e9c062d8d7 /src/core | |
| parent | Merge pull request #5229 from Morph1984/fullscreen-opt (diff) | |
| download | yuzu-8fc6e92ef187d9be177e05cdb94ed55d5339a308.tar.gz yuzu-8fc6e92ef187d9be177e05cdb94ed55d5339a308.tar.xz yuzu-8fc6e92ef187d9be177e05cdb94ed55d5339a308.zip | |
hle: service: nfp: Remove incorrect signaling behavior in GetDeviceState.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/nfp/nfp.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp index 5557da72e..641bcadea 100644 --- a/src/core/hle/service/nfp/nfp.cpp +++ b/src/core/hle/service/nfp/nfp.cpp | |||
| @@ -190,12 +190,6 @@ private: | |||
| 190 | void GetDeviceState(Kernel::HLERequestContext& ctx) { | 190 | void GetDeviceState(Kernel::HLERequestContext& ctx) { |
| 191 | LOG_DEBUG(Service_NFP, "called"); | 191 | LOG_DEBUG(Service_NFP, "called"); |
| 192 | 192 | ||
| 193 | auto nfc_event = nfp_interface.GetNFCEvent(); | ||
| 194 | if (!nfc_event->ShouldWait(&ctx.GetThread()) && !has_attached_handle) { | ||
| 195 | device_state = DeviceState::TagFound; | ||
| 196 | nfc_event->Clear(); | ||
| 197 | } | ||
| 198 | |||
| 199 | IPC::ResponseBuilder rb{ctx, 3}; | 193 | IPC::ResponseBuilder rb{ctx, 3}; |
| 200 | rb.Push(RESULT_SUCCESS); | 194 | rb.Push(RESULT_SUCCESS); |
| 201 | rb.Push<u32>(static_cast<u32>(device_state)); | 195 | rb.Push<u32>(static_cast<u32>(device_state)); |