diff options
| author | 2023-03-01 10:38:20 -0500 | |
|---|---|---|
| committer | 2023-03-01 10:38:20 -0500 | |
| commit | 97f7a560f3905a1dd6a4e5a0a308ea752004bf08 (patch) | |
| tree | e60a69f96d16d051220b66e90906a7abeacf1064 /src/core/hle/service/fatal | |
| parent | Merge pull request #9879 from zhaobot/tx-update-20230301024940 (diff) | |
| parent | sm:: fix lingering session initialization issues (diff) | |
| download | yuzu-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/fatal')
| -rw-r--r-- | src/core/hle/service/fatal/fatal.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/service/fatal/fatal.h | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/service/fatal/fatal.cpp b/src/core/hle/service/fatal/fatal.cpp index 2e5919330..3b7b636f3 100644 --- a/src/core/hle/service/fatal/fatal.cpp +++ b/src/core/hle/service/fatal/fatal.cpp | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #include "core/hle/service/fatal/fatal.h" | 13 | #include "core/hle/service/fatal/fatal.h" |
| 14 | #include "core/hle/service/fatal/fatal_p.h" | 14 | #include "core/hle/service/fatal/fatal_p.h" |
| 15 | #include "core/hle/service/fatal/fatal_u.h" | 15 | #include "core/hle/service/fatal/fatal_u.h" |
| 16 | #include "core/hle/service/server_manager.h" | ||
| 16 | #include "core/reporter.h" | 17 | #include "core/reporter.h" |
| 17 | 18 | ||
| 18 | namespace Service::Fatal { | 19 | namespace Service::Fatal { |
| @@ -163,10 +164,13 @@ void Module::Interface::ThrowFatalWithCpuContext(Kernel::HLERequestContext& ctx) | |||
| 163 | rb.Push(ResultSuccess); | 164 | rb.Push(ResultSuccess); |
| 164 | } | 165 | } |
| 165 | 166 | ||
| 166 | void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { | 167 | void LoopProcess(Core::System& system) { |
| 168 | auto server_manager = std::make_unique<ServerManager>(system); | ||
| 167 | auto module = std::make_shared<Module>(); | 169 | auto module = std::make_shared<Module>(); |
| 168 | std::make_shared<Fatal_P>(module, system)->InstallAsService(service_manager); | 170 | |
| 169 | std::make_shared<Fatal_U>(module, system)->InstallAsService(service_manager); | 171 | server_manager->RegisterNamedService("fatal:p", std::make_shared<Fatal_P>(module, system)); |
| 172 | server_manager->RegisterNamedService("fatal:u", std::make_shared<Fatal_U>(module, system)); | ||
| 173 | ServerManager::RunServer(std::move(server_manager)); | ||
| 170 | } | 174 | } |
| 171 | 175 | ||
| 172 | } // namespace Service::Fatal | 176 | } // namespace Service::Fatal |
diff --git a/src/core/hle/service/fatal/fatal.h b/src/core/hle/service/fatal/fatal.h index a7a310f7b..2e4e4c2f6 100644 --- a/src/core/hle/service/fatal/fatal.h +++ b/src/core/hle/service/fatal/fatal.h | |||
| @@ -28,6 +28,6 @@ public: | |||
| 28 | }; | 28 | }; |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system); | 31 | void LoopProcess(Core::System& system); |
| 32 | 32 | ||
| 33 | } // namespace Service::Fatal | 33 | } // namespace Service::Fatal |