diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-09-22 00:43:11 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-22 00:43:20 +0200 |
commit | 038bcec11153cefd713ddb06eddcc42b0a936df2 (patch) | |
tree | db5abfb3d9b350ce931ec89ad8722233c8534a5e /src/core/file_sys | |
parent | config: Remove Dump options from configure_debug (diff) | |
download | yuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.tar yuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.tar.gz yuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.tar.bz2 yuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.tar.lz yuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.tar.xz yuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.tar.zst yuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/registered_cache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp index d1ef1e72d..ac3fbd849 100644 --- a/src/core/file_sys/registered_cache.cpp +++ b/src/core/file_sys/registered_cache.cpp @@ -59,12 +59,12 @@ static std::string GetRelativePathFromNcaID(const std::array<u8, 16>& nca_id, bo bool within_two_digit, bool cnmt_suffix) { if (!within_two_digit) return fmt::format(cnmt_suffix ? "{}.cnmt.nca" : "/{}.nca", - Common::HexArrayToString(nca_id, second_hex_upper)); + Common::HexToString(nca_id, second_hex_upper)); Core::Crypto::SHA256Hash hash{}; mbedtls_sha256(nca_id.data(), nca_id.size(), hash.data(), 0); return fmt::format(cnmt_suffix ? "/000000{:02X}/{}.cnmt.nca" : "/000000{:02X}/{}.nca", hash[0], - Common::HexArrayToString(nca_id, second_hex_upper)); + Common::HexToString(nca_id, second_hex_upper)); } static std::string GetCNMTName(TitleType type, u64 title_id) { @@ -149,7 +149,7 @@ bool PlaceholderCache::Create(const NcaID& id, u64 size) const { if (dir2 == nullptr) return false; - const auto file = dir2->CreateFile(fmt::format("{}.nca", Common::HexArrayToString(id, false))); + const auto file = dir2->CreateFile(fmt::format("{}.nca", Common::HexToString(id, false))); if (file == nullptr) return false; @@ -170,7 +170,7 @@ bool PlaceholderCache::Delete(const NcaID& id) const { const auto dir2 = GetOrCreateDirectoryRelative(dir, dirname); - const auto res = dir2->DeleteFile(fmt::format("{}.nca", Common::HexArrayToString(id, false))); + const auto res = dir2->DeleteFile(fmt::format("{}.nca", Common::HexToString(id, false))); return res; } |