summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-05 08:18:16 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-05 08:18:16 +0100
commit4f13e270c8c63f86a135426e381eef7d4837e5a4 (patch)
treea6c9a29f9bf481c353ab9c5349e82d6c9d7dc5be /src/core/file_sys
parentMerge pull request #5292 from ReinUsesLisp/empty-set (diff)
downloadyuzu-4f13e270c8c63f86a135426e381eef7d4837e5a4.tar
yuzu-4f13e270c8c63f86a135426e381eef7d4837e5a4.tar.gz
yuzu-4f13e270c8c63f86a135426e381eef7d4837e5a4.tar.bz2
yuzu-4f13e270c8c63f86a135426e381eef7d4837e5a4.tar.lz
yuzu-4f13e270c8c63f86a135426e381eef7d4837e5a4.tar.xz
yuzu-4f13e270c8c63f86a135426e381eef7d4837e5a4.tar.zst
yuzu-4f13e270c8c63f86a135426e381eef7d4837e5a4.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/nca_patch.cpp2
-rw-r--r--src/core/file_sys/registered_cache.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/nca_patch.cpp b/src/core/file_sys/nca_patch.cpp
index adcf0732f..a65ec6798 100644
--- a/src/core/file_sys/nca_patch.cpp
+++ b/src/core/file_sys/nca_patch.cpp
@@ -51,8 +51,8 @@ std::pair<std::size_t, std::size_t> SearchBucketEntry(u64 offset, const BlockTyp
low = mid + 1;
}
}
-
UNREACHABLE_MSG("Offset could not be found in BKTR block.");
+ return {0, 0};
}
} // Anonymous namespace
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp
index da01002d5..431302f55 100644
--- a/src/core/file_sys/registered_cache.cpp
+++ b/src/core/file_sys/registered_cache.cpp
@@ -105,7 +105,8 @@ ContentRecordType GetCRTypeFromNCAType(NCAContentType type) {
// TODO(DarkLordZach): Peek at NCA contents to differentiate Manual and Legal.
return ContentRecordType::HtmlDocument;
default:
- UNREACHABLE_MSG("Invalid NCAContentType={:02X}", static_cast<u8>(type));
+ UNREACHABLE_MSG("Invalid NCAContentType={:02X}", type);
+ return ContentRecordType{};
}
}