From 7aa305ea358ee1574f1036493411aa2cdf86458f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 27 Aug 2018 11:15:24 -0400 Subject: Profiler: Migrate global g_ProfileBlocks boolean to JitOptions This global belongs in the JitOptions structure, as it's a conditional setting (A.K.A. option) that changes the behavior of what the JIT does. Plus it keeps the scope of the variable constrained to the general area it's intended to be used and nothing further. --- Source/Android/jni/MainAndroid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Android/jni/MainAndroid.cpp') diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index c5df6bfa29..a160786063 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -498,7 +498,8 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_SetProfiling std::lock_guard guard(s_host_identity_lock); Core::SetState(Core::State::Paused); JitInterface::ClearCache(); - Profiler::g_ProfileBlocks = enable; + JitInterface::SetProfilingState(enable ? JitInterface::ProfilingState::Enabled : + JitInterface::ProfilingState::Disabled); Core::SetState(Core::State::Running); } -- cgit v1.2.3