Debian Codegraph @

gba/interface/interface.hpp

raw
1 #ifndef GBA_HPP
2 namespace GameBoyAdvance {
3 #endif
4
5 struct ID {
6 enum : unsigned {
7 System,
8 GameBoyAdvance,
9 };
10
11 enum : unsigned {
12 BIOS,
13
14 Manifest,
15 ROM,
16 RAM,
17 EEPROM,
18 FlashROM,
19 };
20
21 enum : unsigned {
22 Device = 1,
23 };
24 };
25
26 struct Interface : Emulator::Interface {
27 string title();
28 double videoFrequency();
29 double audioFrequency();
30
31 bool loaded();
32 unsigned group(unsigned id);
33 void load(unsigned id);
34 void save();
35 void load(unsigned id, const stream& stream);
36 void save(unsigned id, const stream& stream);
37 void unload();
38
39 void power();
40 void reset();
41 void run();
42
43 serializer serialize();
44 bool unserialize(serializer&);
45
46 void paletteUpdate(PaletteMode mode);
47
48 Interface();
49
50 private:
51 vector<Device> device;
52 };
53
54 extern Interface* interface;
55
56 #ifndef GBA_HPP
57 }
58 #endif