From f63244cfa4702b03a5bac723eb36b6631f0400b0 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 7 Nov 2024 13:37:10 +1030 Subject: [PATCH] Core: Handle duplicate symbols in AddLabelSymbol --- .../Project64-core/N64System/Recompiler/x86/x86ops.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp index a518a4cb4..624fb3756 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp @@ -901,7 +901,14 @@ void CX86Ops::AddLabelSymbol(const asmjit::Label & Label, const char * Symbol) NumberSymbolMap::iterator itr = m_LabelSymbols.find(Label.id()); if (itr != m_LabelSymbols.end()) { - __debugbreak(); + if (strcmp(itr->second.Symbol.c_str(), Symbol) == 0) + { + itr->second.Count += 2; + } + else + { + __debugbreak(); + } } else {