impr: Added note to Advanced Yara Information section if no matches were found

This commit is contained in:
WerWolv
2025-08-28 17:24:51 +02:00
parent 8a4cdbb371
commit 8515cd43fa
3 changed files with 8 additions and 4 deletions

View File

@@ -494,7 +494,7 @@ namespace hex::plugin::builtin {
{ "Magic", &paths::Magic },
{ "Plugins", &paths::Plugins },
{ "Yara Patterns", &paths::Yara },
{ "Yara Advaned Analysis", &paths::YaraAdvancedAnalysis },
{ "Yara Advanced Analysis", &paths::YaraAdvancedAnalysis },
{ "Config", &paths::Config },
{ "Updates", &paths::Updates },
{ "Backups", &paths::Backups },

View File

@@ -1,6 +1,7 @@
{
"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.information_section.advanced_data_info.no_information": "No further information available.",
"hex.yara.information_section.advanced_data_info.no_information.add_new": "To add new information here, add new matching rules with the 'category' and 'name' meta tags to one of your Yara Advanced Analysis folders.",
"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",

View File

@@ -10,6 +10,7 @@
#include <wolv/io/file.hpp>
#include <set>
#include <fonts/vscode_icons.hpp>
namespace hex::plugin::yara {
@@ -91,9 +92,11 @@ namespace hex::plugin::yara {
ImGui::EndTable();
}
} else {
ImGui::NewLine();
ImGui::BeginDisabled();
ImGuiExt::TextFormattedCenteredHorizontal("{}", "hex.yara.information_section.advanced_data_info.no_information"_lang);
ImGui::NewLine();
ImGui::EndDisabled();
ImGui::SameLine();
ImGuiExt::HelpHover("hex.yara.information_section.advanced_data_info.no_information.add_new"_lang, ICON_VS_INFO);
}
}