diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-07-05 15:37:50 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-07-15 19:27:04 +0200 |
commit | a82fdea1ac84693288ed5656f3ff89ceaaaeea1b (patch) | |
tree | b2b362dce4013d5254d06ccfa105ea83956d84e2 /src/core/file_sys/registered_cache.h | |
parent | Merge pull request #4342 from lioncash/endian (diff) | |
download | yuzu-a82fdea1ac84693288ed5656f3ff89ceaaaeea1b.tar yuzu-a82fdea1ac84693288ed5656f3ff89ceaaaeea1b.tar.gz yuzu-a82fdea1ac84693288ed5656f3ff89ceaaaeea1b.tar.bz2 yuzu-a82fdea1ac84693288ed5656f3ff89ceaaaeea1b.tar.lz yuzu-a82fdea1ac84693288ed5656f3ff89ceaaaeea1b.tar.xz yuzu-a82fdea1ac84693288ed5656f3ff89ceaaaeea1b.tar.zst yuzu-a82fdea1ac84693288ed5656f3ff89ceaaaeea1b.zip |
Diffstat (limited to 'src/core/file_sys/registered_cache.h')
-rw-r--r-- | src/core/file_sys/registered_cache.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h index f339cd17b..8598f0543 100644 --- a/src/core/file_sys/registered_cache.h +++ b/src/core/file_sys/registered_cache.h @@ -34,6 +34,7 @@ using VfsCopyFunction = std::function<bool(const VirtualFile&, const VirtualFile enum class InstallResult { Success, + OverwriteExisting, ErrorAlreadyExists, ErrorCopyFailed, ErrorMetaFailed, @@ -132,9 +133,9 @@ public: // Parsing function defines the conversion from raw file to NCA. If there are other steps // besides creating the NCA from the file (e.g. NAX0 on SD Card), that should go in a custom // parsing function. - explicit RegisteredCache(VirtualDir dir, - ContentProviderParsingFunction parsing_function = - [](const VirtualFile& file, const NcaID& id) { return file; }); + explicit RegisteredCache( + VirtualDir dir, ContentProviderParsingFunction parsing_function = + [](const VirtualFile& file, const NcaID& id) { return file; }); ~RegisteredCache() override; void Refresh() override; @@ -154,6 +155,9 @@ public: std::optional<TitleType> title_type = {}, std::optional<ContentRecordType> record_type = {}, std::optional<u64> title_id = {}) const override; + // Removes an existing entry based on title id + bool RemoveExistingEntry(const u64 title_id); + // Raw copies all the ncas from the xci/nsp to the csache. Does some quick checks to make sure // there is a meta NCA and all of them are accessible. InstallResult InstallEntry(const XCI& xci, bool overwrite_if_exists = false, |