bsnes/higan/gba/interface/interface.hpp

55 lines
1.1 KiB
C++

namespace GameBoyAdvance {
struct ID {
enum : uint {
System,
GameBoyAdvance,
};
struct Port { enum : uint {
Hardware,
};};
struct Device { enum : uint {
Controls,
};};
};
struct Interface : Emulator::Interface {
using Emulator::Interface::load;
Interface();
auto manifest() -> string override;
auto title() -> string override;
auto videoResolution() -> VideoResolution override;
auto videoColors() -> uint32 override;
auto videoColor(uint32 color) -> uint64 override;
auto loaded() -> bool override;
auto load(uint id) -> bool override;
auto save() -> void override;
auto unload() -> void override;
auto power() -> void override;
auto run() -> void override;
auto serialize() -> serializer override;
auto unserialize(serializer&) -> bool 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 blurEmulation = true;
bool colorEmulation = true;
bool rotateLeft = false;
};
extern Settings settings;
}