mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
Added create_struct and create_union function to Python API
This commit is contained in:
@@ -87,6 +87,13 @@ namespace hex {
|
||||
this->parsePattern(this->m_textEditor.GetText().data());
|
||||
});
|
||||
|
||||
View::subscribeEvent(Events::AppendPatternLanguageCode, [this](const void *userData) {
|
||||
const char *code = static_cast<const char*>(userData);
|
||||
|
||||
this->m_textEditor.InsertText("\n");
|
||||
this->m_textEditor.InsertText(code);
|
||||
});
|
||||
|
||||
View::subscribeEvent(Events::FileLoaded, [this](const void* userData) {
|
||||
if (!this->m_textEditor.GetText().empty())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user