summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
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/core.cpp
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/core.cpp')
-rw-r--r--src/core/core.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index fb9b25d12..4a1372d15 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -380,9 +380,7 @@ struct System::Impl {
380 gpu_core->NotifyShutdown(); 380 gpu_core->NotifyShutdown();
381 } 381 }
382 382
383 kernel.ShutdownCores(); 383 kernel.SuspendApplication(true);
384 cpu_manager.Shutdown();
385 debugger.reset();
386 if (services) { 384 if (services) {
387 services->KillNVNFlinger(); 385 services->KillNVNFlinger();
388 } 386 }
@@ -398,6 +396,9 @@ struct System::Impl {
398 gpu_core.reset(); 396 gpu_core.reset();
399 host1x_core.reset(); 397 host1x_core.reset();
400 perf_stats.reset(); 398 perf_stats.reset();
399 kernel.ShutdownCores();
400 cpu_manager.Shutdown();
401 debugger.reset();
401 kernel.Shutdown(); 402 kernel.Shutdown();
402 memory.Reset(); 403 memory.Reset();
403 404
@@ -938,6 +939,10 @@ const Network::RoomNetwork& System::GetRoomNetwork() const {
938 return impl->room_network; 939 return impl->room_network;
939} 940}
940 941
942void System::RunServer(std::unique_ptr<Service::ServerManager>&& server_manager) {
943 return impl->kernel.RunServer(std::move(server_manager));
944}
945
941void System::RegisterExecuteProgramCallback(ExecuteProgramCallback&& callback) { 946void System::RegisterExecuteProgramCallback(ExecuteProgramCallback&& callback) {
942 impl->execute_program_callback = std::move(callback); 947 impl->execute_program_callback = std::move(callback);
943} 948}