|
|
@ -82,6 +82,7 @@ VirtualAmiibo::Info VirtualAmiibo::LoadAmiibo(const std::string& filename) {
|
|
|
|
switch (nfc_file.GetSize()) {
|
|
|
|
switch (nfc_file.GetSize()) {
|
|
|
|
case AmiiboSize:
|
|
|
|
case AmiiboSize:
|
|
|
|
case AmiiboSizeWithoutPassword:
|
|
|
|
case AmiiboSizeWithoutPassword:
|
|
|
|
|
|
|
|
case AmiiboSizeWithSignature:
|
|
|
|
data.resize(AmiiboSize);
|
|
|
|
data.resize(AmiiboSize);
|
|
|
|
if (nfc_file.Read(data) < AmiiboSizeWithoutPassword) {
|
|
|
|
if (nfc_file.Read(data) < AmiiboSizeWithoutPassword) {
|
|
|
|
return Info::NotAnAmiibo;
|
|
|
|
return Info::NotAnAmiibo;
|
|
|
@ -109,6 +110,7 @@ VirtualAmiibo::Info VirtualAmiibo::LoadAmiibo(std::span<u8> data) {
|
|
|
|
switch (data.size_bytes()) {
|
|
|
|
switch (data.size_bytes()) {
|
|
|
|
case AmiiboSize:
|
|
|
|
case AmiiboSize:
|
|
|
|
case AmiiboSizeWithoutPassword:
|
|
|
|
case AmiiboSizeWithoutPassword:
|
|
|
|
|
|
|
|
case AmiiboSizeWithSignature:
|
|
|
|
nfc_data.resize(AmiiboSize);
|
|
|
|
nfc_data.resize(AmiiboSize);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case MifareSize:
|
|
|
|
case MifareSize:
|
|
|
|