summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfp/amiibo_crypto.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-10-04 01:06:55 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2022-10-04 01:06:55 +0200
commite85c19adcb71149922332150d45d671f90bd1f9f (patch)
tree39797c4c6e70786fe2e4a6aba643c48db8f33be7 /src/core/hle/service/nfp/amiibo_crypto.cpp
parentMerge pull request #8955 from german77/amiibo-rewrite (diff)
downloadyuzu-e85c19adcb71149922332150d45d671f90bd1f9f.tar
yuzu-e85c19adcb71149922332150d45d671f90bd1f9f.tar.gz
yuzu-e85c19adcb71149922332150d45d671f90bd1f9f.tar.bz2
yuzu-e85c19adcb71149922332150d45d671f90bd1f9f.tar.lz
yuzu-e85c19adcb71149922332150d45d671f90bd1f9f.tar.xz
yuzu-e85c19adcb71149922332150d45d671f90bd1f9f.tar.zst
yuzu-e85c19adcb71149922332150d45d671f90bd1f9f.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nfp/amiibo_crypto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nfp/amiibo_crypto.cpp b/src/core/hle/service/nfp/amiibo_crypto.cpp
index ce0bc3f75..c32a6816b 100644
--- a/src/core/hle/service/nfp/amiibo_crypto.cpp
+++ b/src/core/hle/service/nfp/amiibo_crypto.cpp
@@ -28,7 +28,7 @@ bool IsAmiiboValid(const EncryptedNTAG215File& ntag_file) {
LOG_DEBUG(Service_NFP, "model_number=0x{0:x}",
static_cast<u16>(amiibo_data.model_info.model_number));
LOG_DEBUG(Service_NFP, "series={}", amiibo_data.model_info.series);
- LOG_DEBUG(Service_NFP, "fixed_value=0x{0:x}", amiibo_data.model_info.constant_value);
+ LOG_DEBUG(Service_NFP, "tag_type=0x{0:x}", amiibo_data.model_info.tag_type);
LOG_DEBUG(Service_NFP, "tag_dynamic_lock=0x{0:x}", ntag_file.dynamic_lock);
LOG_DEBUG(Service_NFP, "tag_CFG0=0x{0:x}", ntag_file.CFG0);
@@ -55,7 +55,7 @@ bool IsAmiiboValid(const EncryptedNTAG215File& ntag_file) {
if (amiibo_data.constant_value != 0xA5) {
return false;
}
- if (amiibo_data.model_info.constant_value != 0x02) {
+ if (amiibo_data.model_info.tag_type != PackedTagType::Type2) {
return false;
}
if ((ntag_file.dynamic_lock & 0xFFFFFF) != 0x0F0001U) {