refactor: Move the builtin plugin specific init tasks to the plugin

This commit is contained in:
WerWolv
2023-11-28 00:19:42 +01:00
parent 8e7716ebcc
commit 284f8534ab
10 changed files with 411 additions and 376 deletions
@@ -44,6 +44,7 @@ namespace hex::plugin::builtin {
void addTitleBarButtons();
void addToolbarItems();
void addGlobalUIItems();
void addInitTasks();
void handleBorderlessWindowMode();
@@ -74,6 +75,8 @@ IMHEX_PLUGIN_SETUP("Built-in", "WerWolv", "Default ImHex functionality") {
for (auto &path : romfs::list("lang"))
hex::ContentRegistry::Language::addLocalization(nlohmann::json::parse(romfs::get(path).string()));
addInitTasks();
registerEventHandlers();
registerDataVisualizers();
registerDataInspectorEntries();