summaryrefslogtreecommitdiff
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-09-21 18:43:11 -0400
committerGravatar Zach Hilman2019-09-21 18:43:20 -0400
commit038bcec11153cefd713ddb06eddcc42b0a936df2 (patch)
treedb5abfb3d9b350ce931ec89ad8722233c8534a5e /src/core/file_sys
parentconfig: Remove Dump options from configure_debug (diff)
downloadyuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.tar.gz
yuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.tar.xz
yuzu-038bcec11153cefd713ddb06eddcc42b0a936df2.zip
configure_debug: Move reporting option to logging
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/registered_cache.cpp8
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
59 bool within_two_digit, bool cnmt_suffix) { 59 bool within_two_digit, bool cnmt_suffix) {
60 if (!within_two_digit) 60 if (!within_two_digit)
61 return fmt::format(cnmt_suffix ? "{}.cnmt.nca" : "/{}.nca", 61 return fmt::format(cnmt_suffix ? "{}.cnmt.nca" : "/{}.nca",
62 Common::HexArrayToString(nca_id, second_hex_upper)); 62 Common::HexToString(nca_id, second_hex_upper));
63 63
64 Core::Crypto::SHA256Hash hash{}; 64 Core::Crypto::SHA256Hash hash{};
65 mbedtls_sha256(nca_id.data(), nca_id.size(), hash.data(), 0); 65 mbedtls_sha256(nca_id.data(), nca_id.size(), hash.data(), 0);
66 return fmt::format(cnmt_suffix ? "/000000{:02X}/{}.cnmt.nca" : "/000000{:02X}/{}.nca", hash[0], 66 return fmt::format(cnmt_suffix ? "/000000{:02X}/{}.cnmt.nca" : "/000000{:02X}/{}.nca", hash[0],
67 Common::HexArrayToString(nca_id, second_hex_upper)); 67 Common::HexToString(nca_id, second_hex_upper));
68} 68}
69 69
70static std::string GetCNMTName(TitleType type, u64 title_id) { 70static std::string GetCNMTName(TitleType type, u64 title_id) {
@@ -149,7 +149,7 @@ bool PlaceholderCache::Create(const NcaID& id, u64 size) const {
149 if (dir2 == nullptr) 149 if (dir2 == nullptr)
150 return false; 150 return false;
151 151
152 const auto file = dir2->CreateFile(fmt::format("{}.nca", Common::HexArrayToString(id, false))); 152 const auto file = dir2->CreateFile(fmt::format("{}.nca", Common::HexToString(id, false)));
153 153
154 if (file == nullptr) 154 if (file == nullptr)
155 return false; 155 return false;
@@ -170,7 +170,7 @@ bool PlaceholderCache::Delete(const NcaID& id) const {
170 170
171 const auto dir2 = GetOrCreateDirectoryRelative(dir, dirname); 171 const auto dir2 = GetOrCreateDirectoryRelative(dir, dirname);
172 172
173 const auto res = dir2->DeleteFile(fmt::format("{}.nca", Common::HexArrayToString(id, false))); 173 const auto res = dir2->DeleteFile(fmt::format("{}.nca", Common::HexToString(id, false)));
174 174
175 return res; 175 return res;
176} 176}