summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/registered_cache.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-17 20:04:18 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-17 20:04:18 +0200
commit59044862a902913700c3e7062ac8cfa43811c420 (patch)
tree856a3e44206ab9f26e4fa30929a478d6dd08d916 /src/core/file_sys/registered_cache.h
parentfsp_srv: Apply patches to Data storage in OpenDataStorageByDataId (diff)
downloadyuzu-59044862a902913700c3e7062ac8cfa43811c420.tar
yuzu-59044862a902913700c3e7062ac8cfa43811c420.tar.gz
yuzu-59044862a902913700c3e7062ac8cfa43811c420.tar.bz2
yuzu-59044862a902913700c3e7062ac8cfa43811c420.tar.lz
yuzu-59044862a902913700c3e7062ac8cfa43811c420.tar.xz
yuzu-59044862a902913700c3e7062ac8cfa43811c420.tar.zst
yuzu-59044862a902913700c3e7062ac8cfa43811c420.zip
Diffstat (limited to 'src/core/file_sys/registered_cache.h')
-rw-r--r--src/core/file_sys/registered_cache.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h
index 5ddacba47..aeb1c69ba 100644
--- a/src/core/file_sys/registered_cache.h
+++ b/src/core/file_sys/registered_cache.h
@@ -50,6 +50,9 @@ constexpr u64 GetUpdateTitleID(u64 base_title_id) {
// boost flat_map requires operator< for O(log(n)) lookups.
bool operator<(const RegisteredCacheEntry& lhs, const RegisteredCacheEntry& rhs);
+// std unique requires operator== to identify duplicates.
+bool operator==(const RegisteredCacheEntry& lhs, const RegisteredCacheEntry& rhs);
+
/*
* A class that catalogues NCAs in the registered directory structure.
* Nintendo's registered format follows this structure:
@@ -60,8 +63,8 @@ bool operator<(const RegisteredCacheEntry& lhs, const RegisteredCacheEntry& rhs)
* | 00
* | 01 <- Actual content split along 4GB boundaries. (optional)
*
- * (This impl also supports substituting the nca dir for an nca file, as that's more convenient when
- * 4GB splitting can be ignored.)
+ * (This impl also supports substituting the nca dir for an nca file, as that's more convenient
+ * when 4GB splitting can be ignored.)
*/
class RegisteredCache {
friend class RegisteredCacheUnion;