mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-12 16:44:26 +01:00
core: hid: Allow to read bin files while switch controller is available
This commit is contained in:
parent
5aa208e264
commit
bf641e2964
@ -1334,16 +1334,22 @@ bool EmulatedController::StartNfcPolling() {
|
|||||||
auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
|
auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
|
||||||
auto& nfc_virtual_output_device = output_devices[3];
|
auto& nfc_virtual_output_device = output_devices[3];
|
||||||
|
|
||||||
return nfc_output_device->StartNfcPolling() == Common::Input::NfcState::Success ||
|
const auto device_result = nfc_output_device->StartNfcPolling();
|
||||||
nfc_virtual_output_device->StartNfcPolling() == Common::Input::NfcState::Success;
|
const auto virtual_device_result = nfc_virtual_output_device->StartNfcPolling();
|
||||||
|
|
||||||
|
return device_result == Common::Input::NfcState::Success ||
|
||||||
|
virtual_device_result == Common::Input::NfcState::Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EmulatedController::StopNfcPolling() {
|
bool EmulatedController::StopNfcPolling() {
|
||||||
auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
|
auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
|
||||||
auto& nfc_virtual_output_device = output_devices[3];
|
auto& nfc_virtual_output_device = output_devices[3];
|
||||||
|
|
||||||
return nfc_output_device->StopNfcPolling() == Common::Input::NfcState::Success ||
|
const auto device_result = nfc_output_device->StopNfcPolling();
|
||||||
nfc_virtual_output_device->StopNfcPolling() == Common::Input::NfcState::Success;
|
const auto virtual_device_result = nfc_virtual_output_device->StopNfcPolling();
|
||||||
|
|
||||||
|
return device_result == Common::Input::NfcState::Success ||
|
||||||
|
virtual_device_result == Common::Input::NfcState::Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EmulatedController::ReadAmiiboData(std::vector<u8>& data) {
|
bool EmulatedController::ReadAmiiboData(std::vector<u8>& data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user