mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
fix: remove unreleased isRelative/ToggleRelative references from controller
These were local-only changes that referenced cmd::ToggleRelative and Node::isRelative which don't exist in the pushed core.h, breaking CI.
This commit is contained in:
@@ -1321,10 +1321,6 @@ void RcxController::applyCommand(const Command& command, bool isUndo) {
|
|||||||
int idx = tree.indexOfId(c.nodeId);
|
int idx = tree.indexOfId(c.nodeId);
|
||||||
if (idx >= 0)
|
if (idx >= 0)
|
||||||
tree.nodes[idx].isStatic = isUndo ? c.oldVal : c.newVal;
|
tree.nodes[idx].isStatic = isUndo ? c.oldVal : c.newVal;
|
||||||
} else if constexpr (std::is_same_v<T, cmd::ToggleRelative>) {
|
|
||||||
int idx = tree.indexOfId(c.nodeId);
|
|
||||||
if (idx >= 0)
|
|
||||||
tree.nodes[idx].isRelative = isUndo ? c.oldVal : c.newVal;
|
|
||||||
}
|
}
|
||||||
}, command);
|
}, command);
|
||||||
|
|
||||||
@@ -2107,21 +2103,6 @@ void RcxController::showContextMenu(RcxEditor* editor, int line, int nodeIdx,
|
|||||||
hasConvert = true;
|
hasConvert = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle relative pointer (RVA: target = base + value)
|
|
||||||
if (node.kind == NodeKind::Pointer64 || node.kind == NodeKind::Pointer32) {
|
|
||||||
QString label = node.isRelative
|
|
||||||
? QStringLiteral("Pointer is Absolute")
|
|
||||||
: QStringLiteral("Pointer is &Relative (base + value)");
|
|
||||||
convertMenu->addAction(label, [this, nodeId]() {
|
|
||||||
int ni = m_doc->tree.indexOfId(nodeId);
|
|
||||||
if (ni < 0) return;
|
|
||||||
const Node& n = m_doc->tree.nodes[ni];
|
|
||||||
m_doc->undoStack.push(new RcxCommand(this,
|
|
||||||
cmd::ToggleRelative{n.id, n.isRelative, !n.isRelative}));
|
|
||||||
});
|
|
||||||
hasConvert = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Split hex node into two half-sized hex nodes
|
// Split hex node into two half-sized hex nodes
|
||||||
if (node.kind == NodeKind::Hex64) {
|
if (node.kind == NodeKind::Hex64) {
|
||||||
convertMenu->addAction("Split to hex32+hex32", [this, nodeId]() {
|
convertMenu->addAction("Split to hex32+hex32", [this, nodeId]() {
|
||||||
@@ -3496,10 +3477,6 @@ void RcxController::collectPointerRanges(
|
|||||||
: m_snapshotProv->readU64(ptrAddr);
|
: m_snapshotProv->readU64(ptrAddr);
|
||||||
if (ptrVal == 0 || ptrVal == UINT64_MAX) continue;
|
if (ptrVal == 0 || ptrVal == UINT64_MAX) continue;
|
||||||
|
|
||||||
// Relative pointer (RVA): target = base + value
|
|
||||||
if (child.isRelative)
|
|
||||||
ptrVal += memBase;
|
|
||||||
|
|
||||||
uint64_t pBase = ptrVal;
|
uint64_t pBase = ptrVal;
|
||||||
collectPointerRanges(child.refId, pBase, depth + 1, maxDepth,
|
collectPointerRanges(child.refId, pBase, depth + 1, maxDepth,
|
||||||
visited, ranges);
|
visited, ranges);
|
||||||
|
|||||||
Reference in New Issue
Block a user