summaryrefslogtreecommitdiff
path: root/src/core/hle/service/aoc
diff options
context:
space:
mode:
authorGravatar liamwhite2023-03-01 10:38:20 -0500
committerGravatar GitHub2023-03-01 10:38:20 -0500
commit97f7a560f3905a1dd6a4e5a0a308ea752004bf08 (patch)
treee60a69f96d16d051220b66e90906a7abeacf1064 /src/core/hle/service/aoc
parentMerge pull request #9879 from zhaobot/tx-update-20230301024940 (diff)
parentsm:: fix lingering session initialization issues (diff)
downloadyuzu-97f7a560f3905a1dd6a4e5a0a308ea752004bf08.tar.gz
yuzu-97f7a560f3905a1dd6a4e5a0a308ea752004bf08.tar.xz
yuzu-97f7a560f3905a1dd6a4e5a0a308ea752004bf08.zip
Merge pull request #9832 from liamwhite/hle-mp
service: HLE multiprocess
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.h3
2 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index 1bbf057cb..fed51cfd6 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -17,6 +17,7 @@
17#include "core/hle/ipc_helpers.h" 17#include "core/hle/ipc_helpers.h"
18#include "core/hle/kernel/k_event.h" 18#include "core/hle/kernel/k_event.h"
19#include "core/hle/service/aoc/aoc_u.h" 19#include "core/hle/service/aoc/aoc_u.h"
20#include "core/hle/service/server_manager.h"
20#include "core/loader/loader.h" 21#include "core/loader/loader.h"
21 22
22namespace Service::AOC { 23namespace Service::AOC {
@@ -314,8 +315,10 @@ void AOC_U::CreatePermanentEcPurchasedEventManager(Kernel::HLERequestContext& ct
314 rb.PushIpcInterface<IPurchaseEventManager>(system); 315 rb.PushIpcInterface<IPurchaseEventManager>(system);
315} 316}
316 317
317void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { 318void LoopProcess(Core::System& system) {
318 std::make_shared<AOC_U>(system)->InstallAsService(service_manager); 319 auto server_manager = std::make_unique<ServerManager>(system);
320 server_manager->RegisterNamedService("aoc:u", std::make_shared<AOC_U>(system));
321 ServerManager::RunServer(std::move(server_manager));
319} 322}
320 323
321} // namespace Service::AOC 324} // namespace Service::AOC
diff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.h
index 6c1ce601a..5e7087e50 100644
--- a/src/core/hle/service/aoc/aoc_u.h
+++ b/src/core/hle/service/aoc/aoc_u.h
@@ -40,7 +40,6 @@ private:
40 Kernel::KEvent* aoc_change_event; 40 Kernel::KEvent* aoc_change_event;
41}; 41};
42 42
43/// Registers all AOC services with the specified service manager. 43void LoopProcess(Core::System& system);
44void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
45 44
46} // namespace Service::AOC 45} // namespace Service::AOC