feat: Added Copy as -> Address option to Edit menu

Closes #725
This commit is contained in:
WerWolv
2022-09-04 14:23:09 +02:00
parent d9a47fe815
commit 22b6bdb5cf
10 changed files with 14 additions and 4 deletions

View File

@@ -1526,6 +1526,8 @@ namespace hex::plugin::builtin {
if (ImGui::BeginMenu("hex.builtin.view.hex_editor.menu.edit.copy_as"_lang, selection.has_value() && providerValid)) {
if (ImGui::MenuItem("hex.builtin.view.hex_editor.copy.hex"_lang, "CTRL + SHIFT + C"))
copyString(*selection);
if (ImGui::MenuItem("hex.builtin.view.hex_editor.copy.address"_lang))
ImGui::SetClipboardText(hex::format("0x{:08X}", selection->getStartAddress()).c_str());
ImGui::Separator();