summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-06-01 07:51:27 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:06:06 +0200
commiteb4ab9bc58954c6a2bdd6ed3e8d1ecfb41d11e4a (patch)
treeed10daab1ac29d8c5df66cee6f760db78344f9fc /src/input_common/drivers
parentandroid: audio_core: Avoid shutdown hang. (diff)
downloadyuzu-eb4ab9bc58954c6a2bdd6ed3e8d1ecfb41d11e4a.tar
yuzu-eb4ab9bc58954c6a2bdd6ed3e8d1ecfb41d11e4a.tar.gz
yuzu-eb4ab9bc58954c6a2bdd6ed3e8d1ecfb41d11e4a.tar.bz2
yuzu-eb4ab9bc58954c6a2bdd6ed3e8d1ecfb41d11e4a.tar.lz
yuzu-eb4ab9bc58954c6a2bdd6ed3e8d1ecfb41d11e4a.tar.xz
yuzu-eb4ab9bc58954c6a2bdd6ed3e8d1ecfb41d11e4a.tar.zst
yuzu-eb4ab9bc58954c6a2bdd6ed3e8d1ecfb41d11e4a.zip
Diffstat (limited to 'src/input_common/drivers')
-rw-r--r--src/input_common/drivers/virtual_amiibo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_common/drivers/virtual_amiibo.cpp b/src/input_common/drivers/virtual_amiibo.cpp
index c08f21e2c..f8bafe553 100644
--- a/src/input_common/drivers/virtual_amiibo.cpp
+++ b/src/input_common/drivers/virtual_amiibo.cpp
@@ -82,14 +82,14 @@ VirtualAmiibo::Info VirtualAmiibo::LoadAmiibo(const std::string& filename) {
switch (nfc_file.GetSize()) {
case AmiiboSize:
case AmiiboSizeWithoutPassword:
- nfc_data.resize(AmiiboSize);
- if (nfc_file.Read(nfc_data) < AmiiboSizeWithoutPassword) {
+ data.resize(AmiiboSize);
+ if (nfc_file.Read(data) < AmiiboSizeWithoutPassword) {
return Info::NotAnAmiibo;
}
break;
case MifareSize:
- nfc_data.resize(MifareSize);
- if (nfc_file.Read(nfc_data) < MifareSize) {
+ data.resize(MifareSize);
+ if (nfc_file.Read(data) < MifareSize) {
return Info::NotAnAmiibo;
}
break;