diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2019-11-13 21:00:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-13 21:00:02 +0100 |
commit | ebb30cbefbb350001b002243ed4286965e804cea (patch) | |
tree | e206b0fb3fdc06d9ca45ac8fc2d2f3d9a0b705b2 /src | |
parent | Merge pull request #3103 from lioncash/cfunc (diff) | |
parent | xts_archive: Remove redundant std::string constructor (diff) | |
download | yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.gz yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.bz2 yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.lz yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.xz yuzu-ebb30cbefbb350001b002243ed4286965e804cea.tar.zst yuzu-ebb30cbefbb350001b002243ed4286965e804cea.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/xts_archive.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/file_sys/xts_archive.cpp b/src/core/file_sys/xts_archive.cpp index 4bc5cb2ee..f5f8b91c9 100644 --- a/src/core/file_sys/xts_archive.cpp +++ b/src/core/file_sys/xts_archive.cpp @@ -93,8 +93,7 @@ Loader::ResultStatus NAX::Parse(std::string_view path) { std::size_t i = 0; for (; i < sd_keys.size(); ++i) { std::array<Core::Crypto::Key128, 2> nax_keys{}; - if (!CalculateHMAC256(nax_keys.data(), sd_keys[i].data(), 0x10, std::string(path).c_str(), - path.size())) { + if (!CalculateHMAC256(nax_keys.data(), sd_keys[i].data(), 0x10, path.data(), path.size())) { return Loader::ResultStatus::ErrorNAXKeyHMACFailed; } |