summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 60efe4410..a49d1214b 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -81,6 +81,10 @@ namespace VideoCore {
81class RendererBase; 81class RendererBase;
82} // namespace VideoCore 82} // namespace VideoCore
83 83
84namespace AudioCore {
85class AudioCore;
86} // namespace AudioCore
87
84namespace Core::Timing { 88namespace Core::Timing {
85class CoreTiming; 89class CoreTiming;
86} 90}
@@ -148,6 +152,9 @@ public:
148 */ 152 */
149 [[nodiscard]] SystemResultStatus Pause(); 153 [[nodiscard]] SystemResultStatus Pause();
150 154
155 /// Check if the core is currently paused.
156 [[nodiscard]] bool IsPaused() const;
157
151 /** 158 /**
152 * Invalidate the CPU instruction caches 159 * Invalidate the CPU instruction caches
153 * This function should only be used by GDB Stub to support breakpoints, memory updates and 160 * This function should only be used by GDB Stub to support breakpoints, memory updates and
@@ -160,6 +167,12 @@ public:
160 /// Shutdown the emulated system. 167 /// Shutdown the emulated system.
161 void Shutdown(); 168 void Shutdown();
162 169
170 /// Check if the core is shutting down.
171 [[nodiscard]] bool IsShuttingDown() const;
172
173 /// Set the shutting down state.
174 void SetShuttingDown(bool shutting_down);
175
163 /// Forcibly detach the debugger if it is running. 176 /// Forcibly detach the debugger if it is running.
164 void DetachDebugger(); 177 void DetachDebugger();
165 178
@@ -250,6 +263,12 @@ public:
250 /// Gets an immutable reference to the renderer. 263 /// Gets an immutable reference to the renderer.
251 [[nodiscard]] const VideoCore::RendererBase& Renderer() const; 264 [[nodiscard]] const VideoCore::RendererBase& Renderer() const;
252 265
266 /// Gets a mutable reference to the audio interface
267 [[nodiscard]] AudioCore::AudioCore& AudioCore();
268
269 /// Gets an immutable reference to the audio interface.
270 [[nodiscard]] const AudioCore::AudioCore& AudioCore() const;
271
253 /// Gets the global scheduler 272 /// Gets the global scheduler
254 [[nodiscard]] Kernel::GlobalSchedulerContext& GlobalSchedulerContext(); 273 [[nodiscard]] Kernel::GlobalSchedulerContext& GlobalSchedulerContext();
255 274