2021-01-13 16:28:27 +00:00
|
|
|
#include <hex/helpers/shared_data.hpp>
|
2021-01-12 22:28:41 +00:00
|
|
|
|
|
|
|
namespace hex {
|
|
|
|
|
|
|
|
std::vector<EventHandler> SharedData::eventHandlers;
|
|
|
|
std::vector<std::function<void()>> SharedData::deferredCalls;
|
|
|
|
prv::Provider *SharedData::currentProvider;
|
|
|
|
std::map<std::string, std::vector<ContentRegistry::Settings::Entry>> SharedData::settingsEntries;
|
|
|
|
nlohmann::json SharedData::settingsJson;
|
|
|
|
std::map<std::string, Events> SharedData::customEvents;
|
|
|
|
u32 SharedData::customEventsLastId;
|
|
|
|
std::vector<ContentRegistry::CommandPaletteCommands::Entry> SharedData::commandPaletteCommands;
|
|
|
|
std::map<std::string, ContentRegistry::PatternLanguageFunctions::Function> SharedData::patternLanguageFunctions;
|
2021-03-16 21:44:37 +00:00
|
|
|
std::vector<View*> SharedData::views;
|
2021-01-13 12:18:03 +00:00
|
|
|
std::vector<ContentRegistry::Tools::Entry> SharedData::toolsEntries;
|
2021-01-13 00:24:27 +00:00
|
|
|
std::vector<ContentRegistry::DataInspector::Entry> SharedData::dataInspectorEntries;
|
2021-01-13 22:08:41 +00:00
|
|
|
u32 SharedData::patternPaletteOffset;
|
|
|
|
std::string SharedData::errorPopupMessage;
|
2021-01-20 19:16:24 +00:00
|
|
|
std::list<ImHexApi::Bookmarks::Entry> SharedData::bookmarkEntries;
|
2021-02-10 23:35:30 +00:00
|
|
|
|
|
|
|
std::map<std::string, std::string> SharedData::languageNames;
|
|
|
|
std::map<std::string, std::vector<LanguageDefinition>> SharedData::languageDefinitions;
|
|
|
|
std::map<std::string, std::string> SharedData::loadedLanguageStrings;
|
2021-01-12 22:28:41 +00:00
|
|
|
|
2021-02-18 11:09:19 +00:00
|
|
|
std::vector<ContentRegistry::Interface::DrawCallback> SharedData::welcomeScreenEntries;
|
|
|
|
std::vector<ContentRegistry::Interface::DrawCallback> SharedData::footerItems;
|
|
|
|
|
2021-01-30 21:39:06 +00:00
|
|
|
std::vector<ContentRegistry::DataProcessorNode::Entry> SharedData::dataProcessorNodes;
|
|
|
|
u32 SharedData::dataProcessorNodeIdCounter = 1;
|
|
|
|
|
2021-01-12 22:28:41 +00:00
|
|
|
int SharedData::mainArgc;
|
|
|
|
char **SharedData::mainArgv;
|
|
|
|
|
|
|
|
ImVec2 SharedData::windowPos;
|
|
|
|
ImVec2 SharedData::windowSize;
|
|
|
|
|
|
|
|
std::map<std::string, std::any> SharedData::sharedVariables;
|
|
|
|
}
|