2021-01-13 17:28:27 +01:00
|
|
|
#include <hex/helpers/shared_data.hpp>
|
2021-01-12 23:28:41 +01:00
|
|
|
|
|
|
|
namespace hex {
|
|
|
|
|
|
|
|
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::vector<ContentRegistry::CommandPaletteCommands::Entry> SharedData::commandPaletteCommands;
|
|
|
|
std::map<std::string, ContentRegistry::PatternLanguageFunctions::Function> SharedData::patternLanguageFunctions;
|
2021-03-16 22:44:37 +01:00
|
|
|
std::vector<View*> SharedData::views;
|
2021-01-13 13:18:03 +01:00
|
|
|
std::vector<ContentRegistry::Tools::Entry> SharedData::toolsEntries;
|
2021-01-13 01:24:27 +01:00
|
|
|
std::vector<ContentRegistry::DataInspector::Entry> SharedData::dataInspectorEntries;
|
2021-01-13 23:08:41 +01:00
|
|
|
u32 SharedData::patternPaletteOffset;
|
|
|
|
std::string SharedData::errorPopupMessage;
|
2021-01-20 20:16:24 +01:00
|
|
|
std::list<ImHexApi::Bookmarks::Entry> SharedData::bookmarkEntries;
|
2021-04-20 21:46:48 +02:00
|
|
|
std::vector<lang::PatternData*> SharedData::patternData;
|
2021-02-11 00:35:30 +01: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 23:28:41 +01:00
|
|
|
|
2021-02-18 12:09:19 +01:00
|
|
|
std::vector<ContentRegistry::Interface::DrawCallback> SharedData::welcomeScreenEntries;
|
|
|
|
std::vector<ContentRegistry::Interface::DrawCallback> SharedData::footerItems;
|
|
|
|
|
2021-01-30 22:39:06 +01:00
|
|
|
std::vector<ContentRegistry::DataProcessorNode::Entry> SharedData::dataProcessorNodes;
|
|
|
|
u32 SharedData::dataProcessorNodeIdCounter = 1;
|
2021-05-17 23:17:58 +02:00
|
|
|
u32 SharedData::dataProcessorLinkIdCounter = 1;
|
|
|
|
u32 SharedData::dataProcessorAttrIdCounter = 1;
|
2021-01-30 22:39:06 +01:00
|
|
|
|
2021-04-13 08:41:59 +02:00
|
|
|
std::list<std::string> SharedData::recentFilePaths;
|
|
|
|
|
2021-01-12 23:28:41 +01:00
|
|
|
int SharedData::mainArgc;
|
|
|
|
char **SharedData::mainArgv;
|
|
|
|
|
|
|
|
ImVec2 SharedData::windowPos;
|
|
|
|
ImVec2 SharedData::windowSize;
|
|
|
|
|
|
|
|
std::map<std::string, std::any> SharedData::sharedVariables;
|
|
|
|
}
|