diff options
| author | 2018-04-20 21:26:27 -0400 | |
|---|---|---|
| committer | 2018-04-20 21:26:27 -0400 | |
| commit | 2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1 (patch) | |
| tree | eb3a8d9007462f1864174ea4ffe9e5a80d56c9d5 /src/core/core.h | |
| parent | Merge pull request #340 from mailwl/vi-update (diff) | |
| parent | core: Relocate g_service_manager to the System class (diff) | |
| download | yuzu-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.h | 12 |
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 @@ | |||
| 19 | class EmuWindow; | 19 | class EmuWindow; |
| 20 | class ARM_Interface; | 20 | class ARM_Interface; |
| 21 | 21 | ||
| 22 | namespace Service::SM { | ||
| 23 | class ServiceManager; | ||
| 24 | } | ||
| 25 | |||
| 22 | namespace Core { | 26 | namespace Core { |
| 23 | 27 | ||
| 24 | class System { | 28 | class System { |
| 25 | public: | 29 | public: |
| 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 | ||