#include "helpers/utils.hpp" #include "window.hpp" #include #include #include "lang/pattern_data.hpp" #include "views/view_hexeditor.hpp" #include "views/view_pattern.hpp" #include "views/view_pattern_data.hpp" #include "views/view_hashes.hpp" #include "views/view_information.hpp" #include "views/view_help.hpp" #include "views/view_tools.hpp" #include "views/view_strings.hpp" #include "views/view_data_inspector.hpp" #include "views/view_disassembler.hpp" #include "views/view_bookmarks.hpp" #include "views/view_patches.hpp" #include "views/view_command_palette.hpp" #include "views/view_settings.hpp" #include int main(int argc, char **argv) { hex::Window window(argc, argv); // Shared Data std::vector patternData; std::list bookmarks; // Create views hex::ContentRegistry::Views::add(patternData, bookmarks); hex::ContentRegistry::Views::add(patternData); hex::ContentRegistry::Views::add(patternData); hex::ContentRegistry::Views::add(); hex::ContentRegistry::Views::add(); hex::ContentRegistry::Views::add(); hex::ContentRegistry::Views::add(); hex::ContentRegistry::Views::add(); hex::ContentRegistry::Views::add(bookmarks); hex::ContentRegistry::Views::add(); hex::ContentRegistry::Views::add(); hex::ContentRegistry::Views::add(); hex::ContentRegistry::Views::add(); hex::ContentRegistry::Views::add(); if (argc > 1) hex::View::postEvent(hex::Events::FileDropped, argv[1]); window.initPlugins(); window.loop(); return EXIT_SUCCESS; }