From 30090e5db752a01b1c1408cda6152a31742c6ae0 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 3 Oct 2024 16:22:42 +0930 Subject: [PATCH] Core: in CX86Ops::CX86Ops set setLogger to nullptr if not logging --- Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp index db08f9e51..5e6931458 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp @@ -10,7 +10,7 @@ CX86Ops::CX86Ops(CCodeBlock & CodeBlock) : asmjit::x86::Assembler(&CodeBlock.CodeHolder()), m_CodeBlock(CodeBlock) { - setLogger(this); + setLogger(CDebugSettings::bRecordRecompilerAsm() ? this : nullptr); setErrorHandler(&CodeBlock); addFlags(asmjit::FormatFlags::kHexOffsets); addFlags(asmjit::FormatFlags::kHexImms);