From 8a01f3cc6bb60ff49c12fb791f3ea0096f8af5c1 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 22 Mar 2024 21:33:57 +0100 Subject: [PATCH] impr: Show hint if advanced data information section doesn't yield any result --- plugins/yara_rules/romfs/lang/de_DE.json | 1 + plugins/yara_rules/romfs/lang/en_US.json | 1 + plugins/yara_rules/source/content/data_information_sections.cpp | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/yara_rules/romfs/lang/de_DE.json b/plugins/yara_rules/romfs/lang/de_DE.json index 1b976f903fb51..a977490f696b3 100644 --- a/plugins/yara_rules/romfs/lang/de_DE.json +++ b/plugins/yara_rules/romfs/lang/de_DE.json @@ -5,6 +5,7 @@ "language": "German", "translations": { "hex.yara.information_section.advanced_data_info": "Erweiterte Dateninformationen", + "hex.yara.information_section.advanced_data_info.no_information": "Kein erweiterten Informationen gefunden", "hex.yara_rules.view.yara.error": "Yara Kompilerfehler: {0}", "hex.yara_rules.view.yara.header.matches": "Treffer", "hex.yara_rules.view.yara.header.rules": "Regeln", diff --git a/plugins/yara_rules/romfs/lang/en_US.json b/plugins/yara_rules/romfs/lang/en_US.json index fd3b378c3281d..13ab78c3e82ea 100644 --- a/plugins/yara_rules/romfs/lang/en_US.json +++ b/plugins/yara_rules/romfs/lang/en_US.json @@ -5,6 +5,7 @@ "fallback": true, "translations": { "hex.yara.information_section.advanced_data_info": "Advanced Data Information", + "hex.yara.information_section.advanced_data_info.no_information": "No further information found", "hex.yara_rules.view.yara.error": "Yara Compiler error: {0}", "hex.yara_rules.view.yara.header.matches": "Matches", "hex.yara_rules.view.yara.header.rules": "Rules", diff --git a/plugins/yara_rules/source/content/data_information_sections.cpp b/plugins/yara_rules/source/content/data_information_sections.cpp index feffa3e87de20..622812bfc1296 100644 --- a/plugins/yara_rules/source/content/data_information_sections.cpp +++ b/plugins/yara_rules/source/content/data_information_sections.cpp @@ -1,6 +1,4 @@ #include -#include -#include #include #include