mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
Hopefully fixed the whole plugin mess I started
This commit is contained in:
24
plugins/libimhex/source/helpers/shared_data.cpp
Normal file
24
plugins/libimhex/source/helpers/shared_data.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <helpers/shared_data.hpp>
|
||||
|
||||
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;
|
||||
std::vector<View*> SharedData::views;
|
||||
std::vector<std::function<void()>> SharedData::tools;
|
||||
|
||||
int SharedData::mainArgc;
|
||||
char **SharedData::mainArgv;
|
||||
|
||||
ImVec2 SharedData::windowPos;
|
||||
ImVec2 SharedData::windowSize;
|
||||
|
||||
std::map<std::string, std::any> SharedData::sharedVariables;
|
||||
}
|
||||
Reference in New Issue
Block a user