namespace WonderSwan { struct ID { enum : uint { System, WonderSwan, WonderSwanColor, }; enum : uint { SystemManifest, SystemIPLROM, SystemEEPROM, Manifest, ROM, RAM, EEPROM, RTC, }; enum : uint { DeviceHorizontal = 1, DeviceVertical = 2, }; }; struct Interface : Emulator::Interface { Interface(); auto manifest() -> string override; auto title() -> string override; auto videoFrequency() -> double override; auto videoColors() -> uint32; auto videoColor(uint32 color) -> uint64; auto audioFrequency() -> double override; auto loaded() -> bool override; auto sha256() -> string override; auto group(uint id) -> uint override; auto load(uint id) -> void override; auto save() -> void override; auto load(uint id, const stream& stream) -> void override; auto save(uint id, const stream& stream) -> void override; auto unload() -> void override; auto power() -> void override; auto run() -> void override; auto serialize() -> serializer override; auto unserialize(serializer&) -> bool override; auto cheatSet(const lstring&) -> void; auto cap(const string& name) -> bool override; auto get(const string& name) -> any override; auto set(const string& name, const any& value) -> bool override; private: vector devices; }; struct Settings { bool blurEmulation = true; bool colorEmulation = true; }; extern Interface* interface; extern Settings settings; }