diff options
| author | 2018-09-27 08:59:50 -0400 | |
|---|---|---|
| committer | 2018-09-30 21:01:35 -0400 | |
| commit | 7d86a008e219f37cd6fd58175ed6e4a0739e6ea5 (patch) | |
| tree | 8dfdf30a3256750cb9baf648641b002cb420a330 /src/core/file_sys | |
| parent | aoc_u: Implement Count, List and Prepare AddOnContent (diff) | |
| download | yuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.tar.gz yuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.tar.xz yuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.zip | |
aoc_u: Implement GetAddOnContentBaseId
Command #5
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 5ac2b987e..ceb462ec4 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp | |||
| @@ -33,7 +33,7 @@ std::string FormatTitleVersion(u32 version, TitleVersionFormat format) { | |||
| 33 | return fmt::format("v{}.{}.{}", bytes[3], bytes[2], bytes[1]); | 33 | return fmt::format("v{}.{}.{}", bytes[3], bytes[2], bytes[1]); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | constexpr std::array<const char*, 2> PATCH_TYPE_NAMES{ | 36 | constexpr std::array<const char*, 3> PATCH_TYPE_NAMES{ |
| 37 | "Update", | 37 | "Update", |
| 38 | "LayeredFS", | 38 | "LayeredFS", |
| 39 | "DLC", | 39 | "DLC", |
| @@ -141,7 +141,7 @@ std::map<PatchType, std::string> PatchManager::GetPatchVersionNames() const { | |||
| 141 | std::map<PatchType, std::string> out; | 141 | std::map<PatchType, std::string> out; |
| 142 | const auto installed = Service::FileSystem::GetUnionContents(); | 142 | const auto installed = Service::FileSystem::GetUnionContents(); |
| 143 | 143 | ||
| 144 | // Update | 144 | // Game Updates |
| 145 | const auto update_tid = GetUpdateTitleID(title_id); | 145 | const auto update_tid = GetUpdateTitleID(title_id); |
| 146 | PatchManager update{update_tid}; | 146 | PatchManager update{update_tid}; |
| 147 | auto [nacp, discard_icon_file] = update.GetControlMetadata(); | 147 | auto [nacp, discard_icon_file] = update.GetControlMetadata(); |
| @@ -160,6 +160,7 @@ std::map<PatchType, std::string> PatchManager::GetPatchVersionNames() const { | |||
| 160 | } | 160 | } |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | // LayeredFS | ||
| 163 | const auto lfs_dir = Service::FileSystem::GetModificationLoadRoot(title_id); | 164 | const auto lfs_dir = Service::FileSystem::GetModificationLoadRoot(title_id); |
| 164 | if (lfs_dir != nullptr && lfs_dir->GetSize() > 0) | 165 | if (lfs_dir != nullptr && lfs_dir->GetSize() > 0) |
| 165 | out.insert_or_assign(PatchType::LayeredFS, ""); | 166 | out.insert_or_assign(PatchType::LayeredFS, ""); |