mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
Redesign type selector popup with fuzzy subsequence matching, per-category icons, field summary tooltips, compact chips, and pointer target primitives. Add address expression parser with arithmetic and register support. Enable track value changes by default.
29 lines
723 B
C++
29 lines
723 B
C++
#pragma once
|
|
#include <QString>
|
|
#include <cstdint>
|
|
#include <functional>
|
|
|
|
namespace rcx {
|
|
|
|
struct AddressParseResult {
|
|
bool ok;
|
|
uint64_t value;
|
|
QString error;
|
|
int errorPos;
|
|
};
|
|
|
|
struct AddressParserCallbacks {
|
|
std::function<uint64_t(const QString& name, bool* ok)> resolveModule;
|
|
std::function<uint64_t(uint64_t addr, bool* ok)> readPointer;
|
|
std::function<uint64_t(const QString& name, bool* ok)> resolveIdentifier;
|
|
};
|
|
|
|
class AddressParser {
|
|
public:
|
|
static AddressParseResult evaluate(const QString& formula, int ptrSize = 8,
|
|
const AddressParserCallbacks* cb = nullptr);
|
|
static QString validate(const QString& formula);
|
|
};
|
|
|
|
} // namespace rcx
|