summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-31 05:50:09 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:06:05 +0200
commitee8caac82f8276dd6585042850c76373dd36ed69 (patch)
tree54536a19b492e15ba91441d2bd89f404b0e1536d /src/input_common
parentandroid: externals: Update libadrenotools, use useLegacyPackaging. (diff)
downloadyuzu-ee8caac82f8276dd6585042850c76373dd36ed69.tar
yuzu-ee8caac82f8276dd6585042850c76373dd36ed69.tar.gz
yuzu-ee8caac82f8276dd6585042850c76373dd36ed69.tar.bz2
yuzu-ee8caac82f8276dd6585042850c76373dd36ed69.tar.lz
yuzu-ee8caac82f8276dd6585042850c76373dd36ed69.tar.xz
yuzu-ee8caac82f8276dd6585042850c76373dd36ed69.tar.zst
yuzu-ee8caac82f8276dd6585042850c76373dd36ed69.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/drivers/virtual_amiibo.cpp20
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;
}