diff options
| author | bunnei <bunneidev@gmail.com> | 2018-10-23 19:26:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-23 19:26:57 -0400 |
| commit | 5edb2403c2030162bbb602dfd8289c738acff0e3 (patch) | |
| tree | fafcdebf8f3305deff1f8a2ebaa0ef14218bb41c /src/core/file_sys/registered_cache.h | |
| parent | fc9d8afead2e071820446dbc6f7fad0bd47a8ab2 (diff) | |
| parent | 9d0fb0f81506429fa83923b04878a5ee2e8ff420 (diff) | |
Merge pull request #1515 from DarkLordZach/dlc-lfs
patch_manager: Add support for LayeredFS on DLC RomFS
Diffstat (limited to 'src/core/file_sys/registered_cache.h')
| -rw-r--r-- | src/core/file_sys/registered_cache.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h index 5ddacba47..5beceffb3 100644 --- a/src/core/file_sys/registered_cache.h +++ b/src/core/file_sys/registered_cache.h @@ -50,6 +50,10 @@ 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); +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 +64,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; |
