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/core.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/core/core.h') diff --git a/src/core/core.h b/src/core/core.h index f497dc022..f81cbfb3c 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -19,10 +19,16 @@ class EmuWindow; class ARM_Interface; +namespace Service::SM { +class ServiceManager; +} + namespace Core { class System { public: + ~System(); + /** * Gets the instance of the System singleton class. * @returns Reference to the instance of the System singleton class. @@ -137,6 +143,9 @@ public: return *app_loader; } + Service::SM::ServiceManager& ServiceManager(); + const Service::SM::ServiceManager& ServiceManager() const; + void SetGPUDebugContext(std::shared_ptr context) { debug_context = std::move(context); } @@ -171,6 +180,9 @@ private: /// When true, signals that a reschedule should happen bool reschedule_pending{}; + /// Service manager + std::shared_ptr service_manager; + /// Telemetry session for this emulation session std::unique_ptr telemetry_session; -- cgit v1.2.3