diff --git a/lib/external/pattern_language b/lib/external/pattern_language index b4e973c31..912af51d2 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit b4e973c3103a9244f2f304d55a7720a956a67f4e +Subproject commit 912af51d2b8e8173f1861fc77f289a1501acb27f diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 0a920e0b3..fed713d82 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -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(); diff --git a/plugins/builtin/source/lang/de_DE.cpp b/plugins/builtin/source/lang/de_DE.cpp index 2526b6297..9fee39ec6 100644 --- a/plugins/builtin/source/lang/de_DE.cpp +++ b/plugins/builtin/source/lang/de_DE.cpp @@ -285,7 +285,8 @@ namespace hex::plugin::builtin { { "hex.builtin.view.hex_editor.file.save_as", "Speichern unter..." }, { "hex.builtin.view.hex_editor.menu.edit.copy", "Kopieren" }, { "hex.builtin.view.hex_editor.menu.edit.copy_as", "Kopieren als..." }, - { "hex.builtin.view.hex_editor.copy.hex", "String" }, + { "hex.builtin.view.hex_editor.copy.hex", "Hex String" }, + { "hex.builtin.view.hex_editor.copy.address", "Adresse" }, { "hex.builtin.view.hex_editor.copy.c", "C Array" }, { "hex.builtin.view.hex_editor.copy.cpp", "C++ Array" }, { "hex.builtin.view.hex_editor.copy.csharp", "C# Array" }, diff --git a/plugins/builtin/source/lang/en_US.cpp b/plugins/builtin/source/lang/en_US.cpp index d6afa012d..adade1b00 100644 --- a/plugins/builtin/source/lang/en_US.cpp +++ b/plugins/builtin/source/lang/en_US.cpp @@ -288,7 +288,8 @@ namespace hex::plugin::builtin { { "hex.builtin.view.hex_editor.menu.file.save_as", "Save As..." }, { "hex.builtin.view.hex_editor.menu.edit.copy", "Copy" }, { "hex.builtin.view.hex_editor.menu.edit.copy_as", "Copy as..." }, - { "hex.builtin.view.hex_editor.copy.hex", "String" }, + { "hex.builtin.view.hex_editor.copy.hex", "Hex String" }, + { "hex.builtin.view.hex_editor.copy.address", "Address" }, { "hex.builtin.view.hex_editor.copy.c", "C Array" }, { "hex.builtin.view.hex_editor.copy.cpp", "C++ Array" }, { "hex.builtin.view.hex_editor.copy.csharp", "C# Array" }, diff --git a/plugins/builtin/source/lang/it_IT.cpp b/plugins/builtin/source/lang/it_IT.cpp index 4454c1fab..f34913f54 100644 --- a/plugins/builtin/source/lang/it_IT.cpp +++ b/plugins/builtin/source/lang/it_IT.cpp @@ -289,7 +289,8 @@ namespace hex::plugin::builtin { { "hex.builtin.view.hex_editor.menu.file.save_as", "Salva come..." }, { "hex.builtin.view.hex_editor.menu.edit.copy", "Copia" }, { "hex.builtin.view.hex_editor.menu.edit.copy_as", "Copia come..." }, - { "hex.builtin.view.hex_editor.copy.hex", "Stringa" }, + { "hex.builtin.view.hex_editor.copy.hex", "Hex Stringa" }, + //{ "hex.builtin.view.hex_editor.copy.address", "Address" }, { "hex.builtin.view.hex_editor.copy.c", "C Array" }, { "hex.builtin.view.hex_editor.copy.cpp", "C++ Array" }, { "hex.builtin.view.hex_editor.copy.csharp", "C# Array" }, diff --git a/plugins/builtin/source/lang/ja_JP.cpp b/plugins/builtin/source/lang/ja_JP.cpp index 8e05331bb..b299d1602 100644 --- a/plugins/builtin/source/lang/ja_JP.cpp +++ b/plugins/builtin/source/lang/ja_JP.cpp @@ -289,6 +289,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.hex_editor.menu.edit.copy", "コピー" }, { "hex.builtin.view.hex_editor.menu.edit.copy_as", "〜としてコピー…" }, { "hex.builtin.view.hex_editor.copy.hex", "文字列" }, + //{ "hex.builtin.view.hex_editor.copy.address", "Address" }, { "hex.builtin.view.hex_editor.copy.c", "C 配列" }, { "hex.builtin.view.hex_editor.copy.cpp", "C++ 配列" }, { "hex.builtin.view.hex_editor.copy.csharp", "C# 配列" }, diff --git a/plugins/builtin/source/lang/ko_KR.cpp b/plugins/builtin/source/lang/ko_KR.cpp index 15ee1bd2a..35b03bd1e 100644 --- a/plugins/builtin/source/lang/ko_KR.cpp +++ b/plugins/builtin/source/lang/ko_KR.cpp @@ -289,6 +289,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.hex_editor.menu.edit.copy", "복사" }, { "hex.builtin.view.hex_editor.menu.edit.copy_as", "다른 방법으로 복사..." }, { "hex.builtin.view.hex_editor.copy.hex", "문자열" }, + //{ "hex.builtin.view.hex_editor.copy.address", "Address" }, { "hex.builtin.view.hex_editor.copy.c", "C 배열" }, { "hex.builtin.view.hex_editor.copy.cpp", "C++ 배열" }, { "hex.builtin.view.hex_editor.copy.csharp", "C# 배열" }, diff --git a/plugins/builtin/source/lang/pt_BR.cpp b/plugins/builtin/source/lang/pt_BR.cpp index 149e9ddf4..567b649d4 100644 --- a/plugins/builtin/source/lang/pt_BR.cpp +++ b/plugins/builtin/source/lang/pt_BR.cpp @@ -287,6 +287,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.hex_editor.menu.edit.copy", "Copiar" }, { "hex.builtin.view.hex_editor.menu.edit.copy_as", "Copiar como..." }, { "hex.builtin.view.hex_editor.copy.hex", "String" }, + //{ "hex.builtin.view.hex_editor.copy.address", "Address" }, { "hex.builtin.view.hex_editor.copy.c", "C Array" }, { "hex.builtin.view.hex_editor.copy.cpp", "C++ Array" }, { "hex.builtin.view.hex_editor.copy.csharp", "C# Array" }, diff --git a/plugins/builtin/source/lang/zh_CN.cpp b/plugins/builtin/source/lang/zh_CN.cpp index 5ca1c6128..f1e2a2382 100644 --- a/plugins/builtin/source/lang/zh_CN.cpp +++ b/plugins/builtin/source/lang/zh_CN.cpp @@ -290,6 +290,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.hex_editor.menu.edit.copy", "复制" }, { "hex.builtin.view.hex_editor.menu.edit.copy_as", "复制为..." }, { "hex.builtin.view.hex_editor.copy.hex", "字符串" }, + //{ "hex.builtin.view.hex_editor.copy.address", "Address" }, { "hex.builtin.view.hex_editor.copy.c", "C 数组" }, { "hex.builtin.view.hex_editor.copy.cpp", "C++ 数组" }, { "hex.builtin.view.hex_editor.copy.csharp", "C# 数组" }, diff --git a/plugins/builtin/source/lang/zh_TW.cpp b/plugins/builtin/source/lang/zh_TW.cpp index 86ce66657..58986252d 100644 --- a/plugins/builtin/source/lang/zh_TW.cpp +++ b/plugins/builtin/source/lang/zh_TW.cpp @@ -287,6 +287,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.hex_editor.menu.edit.copy", "複製" }, { "hex.builtin.view.hex_editor.menu.edit.copy_as", "複製為..." }, { "hex.builtin.view.hex_editor.copy.hex", "字串" }, + //{ "hex.builtin.view.hex_editor.copy.address", "Address" }, { "hex.builtin.view.hex_editor.copy.c", "C 陣列" }, { "hex.builtin.view.hex_editor.copy.cpp", "C++ 陣列" }, { "hex.builtin.view.hex_editor.copy.csharp", "C# 陣列" },