patterns: Fixed pointer name displaying
This commit is contained in:
parent
08c2e1cd4e
commit
d5ca4c4f28
@ -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 };
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user