From 659a612368c98002037d904d511473d8da8e69e4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 20 Apr 2018 19:29:04 -0400 Subject: core: Relocate g_service_manager to the System class Converts the service manager from a global into an instance-based variable. --- src/core/hle/service/sm/sm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/hle/service/sm/sm.cpp') diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp index 297a4f2c6..4578fc05f 100644 --- a/src/core/hle/service/sm/sm.cpp +++ b/src/core/hle/service/sm/sm.cpp @@ -14,6 +14,8 @@ namespace Service::SM { +ServiceManager::~ServiceManager() = default; + void ServiceManager::InvokeControlRequest(Kernel::HLERequestContext& context) { controller_interface->InvokeRequest(context); } @@ -72,7 +74,7 @@ ResultVal> ServiceManager::ConnectToSer return client_port->Connect(); } -std::shared_ptr g_service_manager; +SM::~SM() = default; /** * SM::Initialize service function -- cgit v1.2.3