summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2016-12-15 16:19:30 -0500
committerGravatar Lioncash2016-12-15 16:37:22 -0500
commitba20dd9b6125551ecf2016ed7dbd61dc618fc876 (patch)
tree339289e4a87660df3edf1d3263ecb0e22ca2b573 /src/core/core.cpp
parentMerge pull request #2330 from lioncash/pragma (diff)
downloadyuzu-ba20dd9b6125551ecf2016ed7dbd61dc618fc876.tar.gz
yuzu-ba20dd9b6125551ecf2016ed7dbd61dc618fc876.tar.xz
yuzu-ba20dd9b6125551ecf2016ed7dbd61dc618fc876.zip
gdbstub: Remove global variable from public interface
Currently, this is only ever queried, so adding a function to check if the server is enabled is more sensible. If directly modifying this externally is ever desirable, it should be done by adding a function to the interface, rather than exposing implementation details directly.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 49ac8be6e..6efa18159 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -22,7 +22,7 @@ std::unique_ptr<ARM_Interface> g_sys_core; ///< ARM11 system (OS) core
22 22
23/// Run the core CPU loop 23/// Run the core CPU loop
24void RunLoop(int tight_loop) { 24void RunLoop(int tight_loop) {
25 if (GDBStub::g_server_enabled) { 25 if (GDBStub::IsServerEnabled()) {
26 GDBStub::HandlePacket(); 26 GDBStub::HandlePacket();
27 27
28 // If the loop is halted and we want to step, use a tiny (1) number of instructions to 28 // If the loop is halted and we want to step, use a tiny (1) number of instructions to