diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 5 | ||||
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 7 | ||||
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.h | 1 |
3 files changed, 8 insertions, 5 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, ""); |
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp index f7597f9bb..745ee89bc 100644 --- a/src/core/hle/service/aoc/aoc_u.cpp +++ b/src/core/hle/service/aoc/aoc_u.cpp | |||
| @@ -30,7 +30,7 @@ AOC_U::AOC_U() : ServiceFramework("aoc:u") { | |||
| 30 | {2, &AOC_U::CountAddOnContent, "CountAddOnContent"}, | 30 | {2, &AOC_U::CountAddOnContent, "CountAddOnContent"}, |
| 31 | {3, &AOC_U::ListAddOnContent, "ListAddOnContent"}, | 31 | {3, &AOC_U::ListAddOnContent, "ListAddOnContent"}, |
| 32 | {4, nullptr, "GetAddOnContentBaseIdByApplicationId"}, | 32 | {4, nullptr, "GetAddOnContentBaseIdByApplicationId"}, |
| 33 | {5, nullptr, "GetAddOnContentBaseId"}, | 33 | {5, &AOC_U::GetAddOnContentBaseId, "GetAddOnContentBaseId"}, |
| 34 | {6, nullptr, "PrepareAddOnContentByApplicationId"}, | 34 | {6, nullptr, "PrepareAddOnContentByApplicationId"}, |
| 35 | {7, &AOC_U::PrepareAddOnContent, "PrepareAddOnContent"}, | 35 | {7, &AOC_U::PrepareAddOnContent, "PrepareAddOnContent"}, |
| 36 | {8, nullptr, "GetAddOnContentListChangedEvent"}, | 36 | {8, nullptr, "GetAddOnContentListChangedEvent"}, |
| @@ -95,10 +95,11 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) { | |||
| 95 | rb.Push(RESULT_SUCCESS); | 95 | rb.Push(RESULT_SUCCESS); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | void AOC_U::GetAddOnContentBaseId(Kernel::HLERequestContext& ctx) { | ||
| 98 | IPC::ResponseBuilder rb{ctx, 4}; | 99 | IPC::ResponseBuilder rb{ctx, 4}; |
| 99 | rb.Push(RESULT_SUCCESS); | 100 | rb.Push(RESULT_SUCCESS); |
| 100 | rb.Push<u64>(0); | 101 | rb.Push(Core::System::GetInstance().CurrentProcess()->program_id | DLC_BASE_TO_AOC_ID_MASK); |
| 101 | LOG_WARNING(Service_AOC, "(STUBBED) called"); | 102 | } |
| 102 | 103 | ||
| 103 | void AOC_U::PrepareAddOnContent(Kernel::HLERequestContext& ctx) { | 104 | void AOC_U::PrepareAddOnContent(Kernel::HLERequestContext& ctx) { |
| 104 | IPC::RequestParser rp{ctx}; | 105 | IPC::RequestParser rp{ctx}; |
diff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.h index 61e2ec75d..b3c7cab7a 100644 --- a/src/core/hle/service/aoc/aoc_u.h +++ b/src/core/hle/service/aoc/aoc_u.h | |||
| @@ -16,6 +16,7 @@ public: | |||
| 16 | private: | 16 | private: |
| 17 | void CountAddOnContent(Kernel::HLERequestContext& ctx); | 17 | void CountAddOnContent(Kernel::HLERequestContext& ctx); |
| 18 | void ListAddOnContent(Kernel::HLERequestContext& ctx); | 18 | void ListAddOnContent(Kernel::HLERequestContext& ctx); |
| 19 | void GetAddOnContentBaseId(Kernel::HLERequestContext& ctx); | ||
| 19 | void PrepareAddOnContent(Kernel::HLERequestContext& ctx); | 20 | void PrepareAddOnContent(Kernel::HLERequestContext& ctx); |
| 20 | 21 | ||
| 21 | std::vector<u64> add_on_content; | 22 | std::vector<u64> add_on_content; |