diff options
| author | 2018-10-17 18:27:23 -0400 | |
|---|---|---|
| committer | 2018-10-17 18:27:29 -0400 | |
| commit | 9d0fb0f81506429fa83923b04878a5ee2e8ff420 (patch) | |
| tree | 3bdf4e57a7fa3aeb188838351ffe4f7f6326c047 /src/core | |
| parent | registered_cache: Deduplicate results of ListEntry and ListEntryFilter (diff) | |
| download | yuzu-9d0fb0f81506429fa83923b04878a5ee2e8ff420.tar.gz yuzu-9d0fb0f81506429fa83923b04878a5ee2e8ff420.tar.xz yuzu-9d0fb0f81506429fa83923b04878a5ee2e8ff420.zip | |
qt: Add support for dumping a DLC Data RomFS
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/registered_cache.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/registered_cache.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp index d1dea5e82..29b100414 100644 --- a/src/core/file_sys/registered_cache.cpp +++ b/src/core/file_sys/registered_cache.cpp | |||
| @@ -35,6 +35,10 @@ bool operator==(const RegisteredCacheEntry& lhs, const RegisteredCacheEntry& rhs | |||
| 35 | return std::tie(lhs.title_id, lhs.type) == std::tie(rhs.title_id, rhs.type); | 35 | return std::tie(lhs.title_id, lhs.type) == std::tie(rhs.title_id, rhs.type); |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | bool operator!=(const RegisteredCacheEntry& lhs, const RegisteredCacheEntry& rhs) { | ||
| 39 | return !operator==(lhs, rhs); | ||
| 40 | } | ||
| 41 | |||
| 38 | static bool FollowsTwoDigitDirFormat(std::string_view name) { | 42 | static bool FollowsTwoDigitDirFormat(std::string_view name) { |
| 39 | static const std::regex two_digit_regex("000000[0-9A-F]{2}", std::regex_constants::ECMAScript | | 43 | static const std::regex two_digit_regex("000000[0-9A-F]{2}", std::regex_constants::ECMAScript | |
| 40 | std::regex_constants::icase); | 44 | std::regex_constants::icase); |
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h index aeb1c69ba..5beceffb3 100644 --- a/src/core/file_sys/registered_cache.h +++ b/src/core/file_sys/registered_cache.h | |||
| @@ -52,6 +52,7 @@ bool operator<(const RegisteredCacheEntry& lhs, const RegisteredCacheEntry& rhs) | |||
| 52 | 52 | ||
| 53 | // std unique requires operator== to identify duplicates. | 53 | // std unique requires operator== to identify duplicates. |
| 54 | bool operator==(const RegisteredCacheEntry& lhs, const RegisteredCacheEntry& rhs); | 54 | bool operator==(const RegisteredCacheEntry& lhs, const RegisteredCacheEntry& rhs); |
| 55 | bool operator!=(const RegisteredCacheEntry& lhs, const RegisteredCacheEntry& rhs); | ||
| 55 | 56 | ||
| 56 | /* | 57 | /* |
| 57 | * A class that catalogues NCAs in the registered directory structure. | 58 | * A class that catalogues NCAs in the registered directory structure. |