struct Cheat { enum : uint { Unused = ~0u }; alwaysinline auto enable() const -> bool { return codes.size() > 0; } auto reset() -> void; auto append(uint addr, uint data) -> void; auto append(uint addr, uint comp, uint data) -> void; auto find(uint addr, uint comp) -> maybe; struct Code { uint addr; uint comp; uint data; }; vector codes; }; extern Cheat cheat;