mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
pattern: Make current data offset in attributes point to start address of pattern
This commit is contained in:
@@ -561,6 +561,10 @@ namespace hex::pl {
|
||||
};
|
||||
|
||||
inline void applyVariableAttributes(Evaluator *evaluator, const Attributable *attributable, PatternData *pattern) {
|
||||
auto endOffset = evaluator->dataOffset();
|
||||
evaluator->dataOffset() = pattern->getOffset();
|
||||
ON_SCOPE_EXIT { evaluator->dataOffset() = endOffset; };
|
||||
|
||||
for (ASTNodeAttribute *attribute : attributable->getAttributes()) {
|
||||
auto &name = attribute->getAttribute();
|
||||
auto value = attribute->getValue();
|
||||
|
||||
Reference in New Issue
Block a user