struct CheatCode { unsigned addr; unsigned data; unsigned comp; }; struct Cheat : public vector { static bool decode(string code, unsigned& addr, unsigned& data, unsigned& comp); void synchronize(); bool override[65536]; }; extern Cheat cheat;