diff options
Diffstat (limited to '')
-rw-r--r-- | src/input_common/drivers/virtual_amiibo.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/input_common/drivers/virtual_amiibo.cpp b/src/input_common/drivers/virtual_amiibo.cpp index 9505179c6..c08f21e2c 100644 --- a/src/input_common/drivers/virtual_amiibo.cpp +++ b/src/input_common/drivers/virtual_amiibo.cpp @@ -107,19 +107,19 @@ VirtualAmiibo::Info VirtualAmiibo::LoadAmiibo(std::span<u8> data) { } switch (data.size_bytes()) { - case AmiiboSize: - case AmiiboSizeWithoutPassword: - nfc_data.resize(AmiiboSize); - break; - case MifareSize: - nfc_data.resize(MifareSize); - break; - default: - return Info::NotAnAmiibo; + case AmiiboSize: + case AmiiboSizeWithoutPassword: + nfc_data.resize(AmiiboSize); + break; + case MifareSize: + nfc_data.resize(MifareSize); + break; + default: + return Info::NotAnAmiibo; } state = State::AmiiboIsOpen; - memcpy(nfc_data.data(),data.data(),data.size_bytes()); + memcpy(nfc_data.data(), data.data(), data.size_bytes()); SetNfc(identifier, {Common::Input::NfcState::NewAmiibo, nfc_data}); return Info::Success; } |