1
0
mirror of synced 2024-11-28 09:30:51 +01:00

patterns: Fixed pointer name displaying

This commit is contained in:
WerWolv 2021-09-27 20:16:23 +02:00
parent 08c2e1cd4e
commit d5ca4c4f28
2 changed files with 3 additions and 2 deletions

View File

@ -987,6 +987,8 @@ namespace hex::pl {
ON_SCOPE_EXIT { delete sizePattern; }; ON_SCOPE_EXIT { delete sizePattern; };
auto pattern = new PatternDataPointer(offset, sizePattern->getSize()); auto pattern = new PatternDataPointer(offset, sizePattern->getSize());
pattern->setVariableName(this->m_name);
offset = evaluator->dataOffset(); offset = evaluator->dataOffset();
{ {
@ -1001,8 +1003,6 @@ namespace hex::pl {
evaluator->dataOffset() = offset; evaluator->dataOffset() = offset;
pattern->setVariableName(this->m_name);
applyVariableAttributes(evaluator, this, pattern); applyVariableAttributes(evaluator, this, pattern);
return { pattern }; return { pattern };

View File

@ -391,6 +391,7 @@ namespace hex::pl {
void setPointedAtPattern(PatternData *pattern) { void setPointedAtPattern(PatternData *pattern) {
this->m_pointedAt = pattern; this->m_pointedAt = pattern;
this->m_pointedAt->setVariableName(hex::format("*({})", this->getVariableName()));
} }
[[nodiscard]] PatternData* getPointedAtPattern() { [[nodiscard]] PatternData* getPointedAtPattern() {