summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorTryTwo <taolas@gmail.com>2025-09-18 17:46:02 -0700
committerTryTwo <taolas@gmail.com>2025-09-18 17:46:02 -0700
commit31ba2af9cb21af84db77920b2fa45d185bbc1319 (patch)
tree764c3054c734f43f103a4a1f74ade99b9caa4263 /Source
parentfce5f7c74ed069459b3c298b6e2459dd76f987d7 (diff)
Crash fix: Add check to see if debugging is enabled in Jit's IsProfilingEnabled().
Enable JIT Block Profiling = On, with Enable Debugging UI = Off, will crash dolphin when starting a game.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/PowerPC/JitCommon/JitBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.h b/Source/Core/Core/PowerPC/JitCommon/JitBase.h
index 31659348ca..cb78fcc6fe 100644
--- a/Source/Core/Core/PowerPC/JitCommon/JitBase.h
+++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.h
@@ -197,7 +197,7 @@ public:
JitBase& operator=(JitBase&&) = delete;
~JitBase() override;
- bool IsProfilingEnabled() const { return m_enable_profiling; }
+ bool IsProfilingEnabled() const { return m_enable_profiling && m_enable_debugging; }
bool IsDebuggingEnabled() const { return m_enable_debugging; }
static const u8* Dispatch(JitBase& jit);