From 8d08ab20ec999837be7e80831eb27ba16450aa68 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 26 Mar 2024 19:18:34 +0100 Subject: [PATCH] fix: Added missing ImHex paths to about page --- .../source/content/views/view_about.cpp | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/plugins/builtin/source/content/views/view_about.cpp b/plugins/builtin/source/content/views/view_about.cpp index d93a375fa..21ee130b5 100644 --- a/plugins/builtin/source/content/views/view_about.cpp +++ b/plugins/builtin/source/content/views/view_about.cpp @@ -444,27 +444,29 @@ namespace hex::plugin::builtin { void ViewAbout::drawPathsPage() { constexpr static std::array, size_t(fs::ImHexPath::END)> PathTypes = { { - { "Patterns", fs::ImHexPath::Patterns }, - { "Patterns Includes", fs::ImHexPath::PatternsInclude }, - { "Magic", fs::ImHexPath::Magic }, - { "Plugins", fs::ImHexPath::Plugins }, - { "Libraries", fs::ImHexPath::Libraries }, - { "Yara Patterns", fs::ImHexPath::Yara }, - { "Config", fs::ImHexPath::Config }, - { "Resources", fs::ImHexPath::Resources }, - { "Constants lists", fs::ImHexPath::Constants }, - { "Custom encodings", fs::ImHexPath::Encodings }, - { "Logs", fs::ImHexPath::Logs }, - { "Recent files", fs::ImHexPath::Recent }, - { "Scripts", fs::ImHexPath::Scripts }, - { "Themes", fs::ImHexPath::Themes }, - { "Layouts", fs::ImHexPath::Layouts }, - { "Workspaces", fs::ImHexPath::Workspaces }, - { "Backups", fs::ImHexPath::Backups }, - { "Data inspector scripts", fs::ImHexPath::Inspectors }, - { "Custom data processor nodes", fs::ImHexPath::Nodes } + { "Patterns", fs::ImHexPath::Patterns }, + { "Patterns Includes", fs::ImHexPath::PatternsInclude }, + { "Magic", fs::ImHexPath::Magic }, + { "Plugins", fs::ImHexPath::Plugins }, + { "Yara Patterns", fs::ImHexPath::Yara }, + { "Yara Advaned Analysis", fs::ImHexPath::YaraAdvancedAnalysis }, + { "Config", fs::ImHexPath::Config }, + { "Backups", fs::ImHexPath::Backups }, + { "Resources", fs::ImHexPath::Resources }, + { "Constants lists", fs::ImHexPath::Constants }, + { "Custom encodings", fs::ImHexPath::Encodings }, + { "Logs", fs::ImHexPath::Logs }, + { "Recent files", fs::ImHexPath::Recent }, + { "Scripts", fs::ImHexPath::Scripts }, + { "Data inspector scripts", fs::ImHexPath::Inspectors }, + { "Themes", fs::ImHexPath::Themes }, + { "Native Libraries", fs::ImHexPath::Libraries }, + { "Custom data processor nodes", fs::ImHexPath::Nodes }, + { "Layouts", fs::ImHexPath::Layouts }, + { "Workspaces", fs::ImHexPath::Workspaces }, } }; + static_assert(PathTypes.back().first != nullptr, "All path items need to be populated!"); ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2()); ImGuiExt::BeginSubWindow("Paths", ImGui::GetContentRegionAvail());