From 7d527fd2a65d526f6434362c6fbc1584fca23fd2 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 16 Feb 2025 13:58:56 +0100 Subject: [PATCH] feat: Added disassemblers tab to content store --- plugins/builtin/romfs/lang/en_US.json | 1 + .../builtin/source/content/views/view_store.cpp | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/builtin/romfs/lang/en_US.json b/plugins/builtin/romfs/lang/en_US.json index e1721b8bc..d6f23ce7c 100644 --- a/plugins/builtin/romfs/lang/en_US.json +++ b/plugins/builtin/romfs/lang/en_US.json @@ -1059,6 +1059,7 @@ "hex.builtin.view.store.row.authors": "Authors", "hex.builtin.view.store.row.name": "Name", "hex.builtin.view.store.tab.constants": "Constants", + "hex.builtin.view.store.tab.disassemblers": "Disassemblers", "hex.builtin.view.store.tab.encodings": "Encodings", "hex.builtin.view.store.tab.includes": "Libraries", "hex.builtin.view.store.tab.magic": "Magic Files", diff --git a/plugins/builtin/source/content/views/view_store.cpp b/plugins/builtin/source/content/views/view_store.cpp index 363a57673..c21841036 100644 --- a/plugins/builtin/source/content/views/view_store.cpp +++ b/plugins/builtin/source/content/views/view_store.cpp @@ -38,15 +38,16 @@ namespace hex::plugin::builtin { m_httpRequest.setTimeout(30'0000); - addCategory("hex.builtin.view.store.tab.patterns", "patterns", &paths::Patterns); - addCategory("hex.builtin.view.store.tab.includes", "includes", &paths::PatternsInclude); - addCategory("hex.builtin.view.store.tab.magic", "magic", &paths::Magic, []{ + addCategory("hex.builtin.view.store.tab.patterns", "patterns", &paths::Patterns); + addCategory("hex.builtin.view.store.tab.includes", "includes", &paths::PatternsInclude); + addCategory("hex.builtin.view.store.tab.magic", "magic", &paths::Magic, []{ magic::compile(); }); - addCategory("hex.builtin.view.store.tab.nodes", "nodes", &paths::Nodes); - addCategory("hex.builtin.view.store.tab.encodings", "encodings", &paths::Encodings); - addCategory("hex.builtin.view.store.tab.constants", "constants", &paths::Constants); - addCategory("hex.builtin.view.store.tab.themes", "themes", &paths::Themes, [this]{ + addCategory("hex.builtin.view.store.tab.nodes", "nodes", &paths::Nodes); + addCategory("hex.builtin.view.store.tab.encodings", "encodings", &paths::Encodings); + addCategory("hex.builtin.view.store.tab.disassemblers","disassemblers", &paths::Disassemblers); + addCategory("hex.builtin.view.store.tab.constants", "constants", &paths::Constants); + addCategory("hex.builtin.view.store.tab.themes", "themes", &paths::Themes, [this]{ auto themeFile = wolv::io::File(m_downloadPath, wolv::io::File::Mode::Read); ThemeManager::addTheme(themeFile.readString());