diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-05 23:13:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 23:13:57 +0200 |
commit | 1689530f520f72ca198de421519fd2d6658af2d1 (patch) | |
tree | 3daa0c297084278fdb67b8f3d1f61ca62794b870 /src/core/hle/service/nfp/amiibo_crypto.cpp | |
parent | Show error from cpp-httplib when we don't have a response to read (report errors while connecting to API) (#8999) (diff) | |
parent | service: nfp: Fix errors to pass unit testing (diff) | |
download | yuzu-1689530f520f72ca198de421519fd2d6658af2d1.tar yuzu-1689530f520f72ca198de421519fd2d6658af2d1.tar.gz yuzu-1689530f520f72ca198de421519fd2d6658af2d1.tar.bz2 yuzu-1689530f520f72ca198de421519fd2d6658af2d1.tar.lz yuzu-1689530f520f72ca198de421519fd2d6658af2d1.tar.xz yuzu-1689530f520f72ca198de421519fd2d6658af2d1.tar.zst yuzu-1689530f520f72ca198de421519fd2d6658af2d1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nfp/amiibo_crypto.cpp | 4 |
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) { |