Skip to content

Commit

Permalink
fix: Disassembler always using little endian, no matter the setting
Browse files Browse the repository at this point in the history
Fixes #1763
  • Loading branch information
WerWolv committed Jun 16, 2024
1 parent 3ce9dbb commit 33885b8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 33885b8

Please sign in to comment.