2016-01-27 11:31:39 +00:00
|
|
|
namespace WonderSwan {
|
|
|
|
|
|
|
|
struct ID {
|
|
|
|
enum : uint {
|
|
|
|
System,
|
|
|
|
WonderSwan,
|
|
|
|
WonderSwanColor,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum : uint {
|
|
|
|
SystemManifest,
|
|
|
|
|
|
|
|
Manifest,
|
|
|
|
ROM,
|
|
|
|
RAM,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum : uint {
|
2016-01-28 11:39:49 +00:00
|
|
|
DeviceHorizontal = 1,
|
|
|
|
DeviceVertical = 2,
|
2016-01-27 11:31:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Interface : Emulator::Interface {
|
|
|
|
Interface();
|
|
|
|
|
|
|
|
auto manifest() -> string override;
|
|
|
|
auto title() -> string override;
|
|
|
|
auto videoFrequency() -> double override;
|
|
|
|
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 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<Device> device;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Settings {
|
|
|
|
};
|
|
|
|
|
|
|
|
extern Interface* interface;
|
|
|
|
extern Settings settings;
|
|
|
|
|
|
|
|
}
|