| 1 | struct Utility { |
| 2 | void setInterface(Emulator::Interface* emulator); |
| 3 | |
| 4 | void loadMedia(string pathname); |
| 5 | void loadMedia(Emulator::Interface* emulator, Emulator::Interface::Media& media, string pathname); |
| 6 | |
| 7 | void loadRequest(unsigned id, string name, string type); |
| 8 | void loadRequest(unsigned id, string path); |
| 9 | void saveRequest(unsigned id, string path); |
| 10 | |
| 11 | void connect(unsigned port, unsigned device); |
| 12 | void power(); |
| 13 | void reset(); |
| 14 | void load(); |
| 15 | void unload(); |
| 16 | |
| 17 | void saveState(unsigned slot); |
| 18 | void loadState(unsigned slot); |
| 19 | |
| 20 | void tracerToggle(); |
| 21 | |
| 22 | void synchronizeDSP(); |
| 23 | void synchronizeRuby(); |
| 24 | void updatePalette(); |
| 25 | void updateShader(); |
| 26 | void resize(bool resizeWindow = false); |
| 27 | void toggleFullScreen(); |
| 28 | |
| 29 | void updateStatus(); |
| 30 | void setStatusText(string text); |
| 31 | void showMessage(string message); |
| 32 | |
| 33 | string libraryPath(); |
| 34 | |
| 35 | Utility(); |
| 36 | |
| 37 | lstring path; |
| 38 | lstring pathname; |
| 39 | |
| 40 | private: |
| 41 | bool tracerEnable; |
| 42 | string statusText; |
| 43 | string statusMessage; |
| 44 | time_t statusTime; |
| 45 | }; |
| 46 | |
| 47 | extern Utility* utility; |