From 87ce2ef8339839dc391f07178f2aac6dc29e1a9d Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 22 May 2023 16:05:43 -0400 Subject: Add support for changing enumeration member names by clicking 'N' on their token --- type.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'type.cpp') diff --git a/type.cpp b/type.cpp index 12973b2a..50766dc8 100644 --- a/type.cpp +++ b/type.cpp @@ -2559,10 +2559,10 @@ vector Enumeration::GetMembers() const } -vector Enumeration::GetTokensForValue(uint64_t value, size_t width) +vector Enumeration::GetTokensForValue(uint64_t value, size_t width, Ref type) { size_t count; - BNInstructionTextToken* tokens = BNGetEnumerationTokensForValue(m_object, value, width, &count); + BNInstructionTextToken* tokens = BNGetEnumerationTokensForValue(m_object, value, width, &count, type->GetObject()); return InstructionTextToken::ConvertAndFreeInstructionTextTokenList(tokens, count); } -- cgit v1.3.1