From 33885b863af4ba3ca09d6deeb2dfcda0830789f6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 16 Jun 2024 15:06:30 +0200 Subject: [PATCH] fix: Disassembler always using little endian, no matter the setting Fixes #1763 --- .../disassembler/source/content/views/view_disassembler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/disassembler/source/content/views/view_disassembler.cpp b/plugins/disassembler/source/content/views/view_disassembler.cpp index c63b75931..fe6b080d3 100644 --- a/plugins/disassembler/source/content/views/view_disassembler.cpp +++ b/plugins/disassembler/source/content/views/view_disassembler.cpp @@ -372,6 +372,12 @@ namespace hex::plugin::disasm { break; } + if (littleEndian) { + m_mode = cs_mode(u32(m_mode) | CS_MODE_LITTLE_ENDIAN); + } else { + m_mode = cs_mode(u32(m_mode) | CS_MODE_BIG_ENDIAN); + } + ImGuiExt::EndBox(); } }