20698b51c95d22b399866ee9b21f5b9c6fdc8386
[drnoksnes] / platform / hgw.h
1 #ifndef _PLATFORM_HGW_H_
2 #define _PLATFORM_HGW_H_
3
4 #ifdef __cplusplus
5 /** True if we were launched from GUI. */
6 extern bool hgwLaunched;
7
8 /** Called from main() before loading config; connects to DBus. */
9 void HgwInit();
10 /** Called from main() before closing. */
11 void HgwDeinit();
12 /** Called from main() after loading user config; loads GUI settings. */
13 void HgwConfig();
14 /** Called from main() in the event loop; polls DBus. */
15 void HgwPollEvents();
16 #endif
17
18 #define kGConfPath "/apps/maemo/drnoksnes"
19 #define kGConfRomFile kGConfPath "/" "rom"
20 #define kGConfSound kGConfPath "/" "sound"
21 #define kGConfTurboMode kGConfPath "/" "turbo"
22 #define kGConfFrameskip kGConfPath "/" "frameskip"
23 #define kGConfTransparency kGConfPath "/" "transparency"
24 #define kGConfScaler kGConfPath "/" "scaler"
25 #define kGConfDisplayFramerate kGConfPath "/" "display-framerate"
26 #define kGConfDisplayControls kGConfPath "/" "display-controls"
27 #define kGConfSpeedhacks kGConfPath "/" "speedhacks"
28 #define kGConfMapping kGConfPath "/" "mapping"
29 #define kGConfKeysPath kGConfPath "/" "keys"
30
31
32 #endif
33