summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-04-20 21:26:27 -0400
committerGravatar GitHub2018-04-20 21:26:27 -0400
commit2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1 (patch)
treeeb3a8d9007462f1864174ea4ffe9e5a80d56c9d5 /src/core/core.h
parentMerge pull request #340 from mailwl/vi-update (diff)
parentcore: Relocate g_service_manager to the System class (diff)
downloadyuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.tar.gz
yuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.tar.xz
yuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.zip
Merge pull request #371 from lioncash/global
core: Relocate g_service_manager to the System class
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h12
1 files changed, 12 insertions, 0 deletions
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 @@
19class EmuWindow; 19class EmuWindow;
20class ARM_Interface; 20class ARM_Interface;
21 21
22namespace Service::SM {
23class ServiceManager;
24}
25
22namespace Core { 26namespace Core {
23 27
24class System { 28class System {
25public: 29public:
30 ~System();
31
26 /** 32 /**
27 * Gets the instance of the System singleton class. 33 * Gets the instance of the System singleton class.
28 * @returns Reference to the instance of the System singleton class. 34 * @returns Reference to the instance of the System singleton class.
@@ -137,6 +143,9 @@ public:
137 return *app_loader; 143 return *app_loader;
138 } 144 }
139 145
146 Service::SM::ServiceManager& ServiceManager();
147 const Service::SM::ServiceManager& ServiceManager() const;
148
140 void SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context) { 149 void SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context) {
141 debug_context = std::move(context); 150 debug_context = std::move(context);
142 } 151 }
@@ -171,6 +180,9 @@ private:
171 /// When true, signals that a reschedule should happen 180 /// When true, signals that a reschedule should happen
172 bool reschedule_pending{}; 181 bool reschedule_pending{};
173 182
183 /// Service manager
184 std::shared_ptr<Service::SM::ServiceManager> service_manager;
185
174 /// Telemetry session for this emulation session 186 /// Telemetry session for this emulation session
175 std::unique_ptr<Core::TelemetrySession> telemetry_session; 187 std::unique_ptr<Core::TelemetrySession> telemetry_session;
176 188