mirror of https://github.com/bsnes-emu/bsnes.git
32 lines
709 B
C++
32 lines
709 B
C++
struct System {
|
|
auto loaded() const -> bool { return information.loaded; }
|
|
auto colorburst() const -> double { return information.colorburst; }
|
|
|
|
auto run() -> void;
|
|
|
|
auto load() -> bool;
|
|
auto save() -> void;
|
|
auto unload() -> void;
|
|
auto power() -> void;
|
|
auto reset() -> void;
|
|
|
|
struct Information {
|
|
bool loaded = false;
|
|
string manifest;
|
|
double colorburst = 0.0;
|
|
} information;
|
|
};
|
|
|
|
struct Peripherals {
|
|
auto unload() -> void;
|
|
auto reset() -> void;
|
|
auto connect(uint port, uint device) -> void;
|
|
|
|
Controller* controllerPort1 = nullptr;
|
|
Controller* controllerPort2 = nullptr;
|
|
Controller* extensionPort = nullptr;
|
|
};
|
|
|
|
extern System system;
|
|
extern Peripherals peripherals;
|