// Copyright 2013 Dolphin Emulator Project // Licensed under GPLv2 // Refer to the license.txt file included. #pragma once #include #include #include #include "Common/Common.h" namespace Gecko { class GeckoCode { public: GeckoCode() : enabled(false) {} struct Code { Code() : address(0), data(0) {} u32 address, data; std::string original_line; u32 GetAddress() const; }; std::vector codes; std::string name, creator; std::vector notes; bool enabled; bool user_defined; bool Compare(GeckoCode compare) const; bool Exist(u32 address, u32 data); }; void SetActiveCodes(const std::vector& gcodes); bool RunActiveCodes(); void RunCodeHandler(); } // namespace Gecko