summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/aoc
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-09-27 14:59:50 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-01 03:01:35 +0200
commit7d86a008e219f37cd6fd58175ed6e4a0739e6ea5 (patch)
tree8dfdf30a3256750cb9baf648641b002cb420a330 /src/core/hle/service/aoc
parentaoc_u: Implement Count, List and Prepare AddOnContent (diff)
downloadyuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.tar
yuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.tar.gz
yuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.tar.bz2
yuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.tar.lz
yuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.tar.xz
yuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.tar.zst
yuzu-7d86a008e219f37cd6fd58175ed6e4a0739e6ea5.zip
Diffstat (limited to 'src/core/hle/service/aoc')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp7
-rw-r--r--src/core/hle/service/aoc/aoc_u.h1
2 files changed, 5 insertions, 3 deletions
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") {
{2, &AOC_U::CountAddOnContent, "CountAddOnContent"},
{3, &AOC_U::ListAddOnContent, "ListAddOnContent"},
{4, nullptr, "GetAddOnContentBaseIdByApplicationId"},
- {5, nullptr, "GetAddOnContentBaseId"},
+ {5, &AOC_U::GetAddOnContentBaseId, "GetAddOnContentBaseId"},
{6, nullptr, "PrepareAddOnContentByApplicationId"},
{7, &AOC_U::PrepareAddOnContent, "PrepareAddOnContent"},
{8, nullptr, "GetAddOnContentListChangedEvent"},
@@ -95,10 +95,11 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
}
+void AOC_U::GetAddOnContentBaseId(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(RESULT_SUCCESS);
- rb.Push<u64>(0);
- LOG_WARNING(Service_AOC, "(STUBBED) called");
+ rb.Push(Core::System::GetInstance().CurrentProcess()->program_id | DLC_BASE_TO_AOC_ID_MASK);
+}
void AOC_U::PrepareAddOnContent(Kernel::HLERequestContext& ctx) {
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:
private:
void CountAddOnContent(Kernel::HLERequestContext& ctx);
void ListAddOnContent(Kernel::HLERequestContext& ctx);
+ void GetAddOnContentBaseId(Kernel::HLERequestContext& ctx);
void PrepareAddOnContent(Kernel::HLERequestContext& ctx);
std::vector<u64> add_on_content;