diff options
| author | 2022-11-13 15:14:08 -0600 | |
|---|---|---|
| committer | 2022-11-13 17:13:43 -0600 | |
| commit | 75e6ec85e107d6e5422d882b97faaa813970d42e (patch) | |
| tree | fede32c546409e0f876c9ba7142da39eb4caf9c1 /src/core/hle/service/nfp | |
| parent | service: am: Fix cabinet applet result (diff) | |
| download | yuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.tar.gz yuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.tar.xz yuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.zip | |
general: Address review comments
Diffstat (limited to 'src/core/hle/service/nfp')
| -rw-r--r-- | src/core/hle/service/nfp/nfp_device.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/nfp/nfp_device.cpp b/src/core/hle/service/nfp/nfp_device.cpp index 2f9dfa9c2..e1bf90d7c 100644 --- a/src/core/hle/service/nfp/nfp_device.cpp +++ b/src/core/hle/service/nfp/nfp_device.cpp | |||
| @@ -148,7 +148,7 @@ void NfpDevice::Finalize() { | |||
| 148 | device_state = DeviceState::Unavailable; | 148 | device_state = DeviceState::Unavailable; |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | Result NfpDevice::StartDetection([[maybe_unused]] TagProtocol allowed_protocol) { | 151 | Result NfpDevice::StartDetection(TagProtocol allowed_protocol) { |
| 152 | if (device_state != DeviceState::Initialized && device_state != DeviceState::TagRemoved) { | 152 | if (device_state != DeviceState::Initialized && device_state != DeviceState::TagRemoved) { |
| 153 | LOG_ERROR(Service_NFP, "Wrong device state {}", device_state); | 153 | LOG_ERROR(Service_NFP, "Wrong device state {}", device_state); |
| 154 | return WrongDeviceState; | 154 | return WrongDeviceState; |
| @@ -475,6 +475,8 @@ Result NfpDevice::OpenApplicationArea(u32 access_id) { | |||
| 475 | } | 475 | } |
| 476 | 476 | ||
| 477 | Result NfpDevice::GetApplicationAreaId(u32& application_area_id) const { | 477 | Result NfpDevice::GetApplicationAreaId(u32& application_area_id) const { |
| 478 | application_area_id = {}; | ||
| 479 | |||
| 478 | if (device_state != DeviceState::TagMounted) { | 480 | if (device_state != DeviceState::TagMounted) { |
| 479 | LOG_ERROR(Service_NFP, "Wrong device state {}", device_state); | 481 | LOG_ERROR(Service_NFP, "Wrong device state {}", device_state); |
| 480 | if (device_state == DeviceState::TagRemoved) { | 482 | if (device_state == DeviceState::TagRemoved) { |