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.
This commit is contained in:
TryTwo 2025-09-18 17:46:02 -07:00
parent fce5f7c74e
commit 31ba2af9cb

View File

@ -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);