#if defined(CORE_FC) namespace Famicom { struct ID { enum : uint { System, Famicom, }; struct Port { enum : uint { Controller1, Controller2, Expansion, };}; struct Device { enum : uint { None, Gamepad, };}; }; struct Interface : Emulator::Interface { auto information() -> Information override; auto displays() -> vector override; auto color(uint32 color) -> uint64 override; auto loaded() -> bool override; auto hashes() -> vector override; auto manifests() -> vector override; auto titles() -> vector override; auto load() -> bool override; auto save() -> void override; auto unload() -> void override; auto ports() -> vector override; auto devices(uint port) -> vector override; auto inputs(uint device) -> vector override; auto connected(uint port) -> uint override; auto connect(uint port, uint device) -> void override; auto power() -> void override; auto reset() -> void override; auto run() -> void override; auto serialize() -> serializer override; auto unserialize(serializer&) -> bool override; auto cheats(const vector&) -> void override; auto cap(const string& name) -> bool override; auto get(const string& name) -> any override; auto set(const string& name, const any& value) -> bool override; }; struct Settings { bool colorEmulation = true; bool scanlineEmulation = true; uint controllerPort1 = ID::Device::Gamepad; uint controllerPort2 = ID::Device::Gamepad; uint expansionPort = ID::Device::None; }; extern Settings settings; } #endif