mirror of https://github.com/bsnes-emu/bsnes.git
65 lines
1.1 KiB
C++
65 lines
1.1 KiB
C++
namespace GameBoyAdvance {
|
|
|
|
struct ID {
|
|
enum : uint {
|
|
System,
|
|
GameBoyAdvance,
|
|
};
|
|
|
|
enum : uint {
|
|
SystemManifest,
|
|
BIOS,
|
|
|
|
Manifest,
|
|
MROM,
|
|
SRAM,
|
|
EEPROM,
|
|
FLASH,
|
|
};
|
|
|
|
enum : uint {
|
|
Device = 1,
|
|
};
|
|
};
|
|
|
|
struct Interface : Emulator::Interface {
|
|
Interface();
|
|
|
|
auto manifest() -> string;
|
|
auto title() -> string;
|
|
auto videoFrequency() -> double;
|
|
auto audioFrequency() -> double;
|
|
|
|
auto loaded() -> bool;
|
|
auto group(uint id) -> uint;
|
|
auto load(uint id) -> void;
|
|
auto save() -> void;
|
|
auto load(uint id, const stream& stream) -> void;
|
|
auto save(uint id, const stream& stream) -> void;
|
|
auto unload() -> void;
|
|
|
|
auto power() -> void;
|
|
auto reset() -> void;
|
|
auto run() -> void;
|
|
|
|
auto serialize() -> serializer;
|
|
auto unserialize(serializer&) -> bool;
|
|
|
|
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 {
|
|
bool blurEmulation = true;
|
|
bool colorEmulation = true;
|
|
};
|
|
|
|
extern Interface* interface;
|
|
extern Settings settings;
|
|
|
|
}
|