mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
input_common: Fix virtual amiibos
This commit is contained in:
parent
40e938376b
commit
eb4ab9bc58
@ -82,14 +82,14 @@ VirtualAmiibo::Info VirtualAmiibo::LoadAmiibo(const std::string& filename) {
|
|||||||
switch (nfc_file.GetSize()) {
|
switch (nfc_file.GetSize()) {
|
||||||
case AmiiboSize:
|
case AmiiboSize:
|
||||||
case AmiiboSizeWithoutPassword:
|
case AmiiboSizeWithoutPassword:
|
||||||
nfc_data.resize(AmiiboSize);
|
data.resize(AmiiboSize);
|
||||||
if (nfc_file.Read(nfc_data) < AmiiboSizeWithoutPassword) {
|
if (nfc_file.Read(data) < AmiiboSizeWithoutPassword) {
|
||||||
return Info::NotAnAmiibo;
|
return Info::NotAnAmiibo;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MifareSize:
|
case MifareSize:
|
||||||
nfc_data.resize(MifareSize);
|
data.resize(MifareSize);
|
||||||
if (nfc_file.Read(nfc_data) < MifareSize) {
|
if (nfc_file.Read(data) < MifareSize) {
|
||||||
return Info::NotAnAmiibo;
|
return Info::NotAnAmiibo;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user