trying to use osso-games-startup as gui
[drnoksnes] / platform / platform.h
1 #ifndef _PLATFORM_SDL_H_
2 #define _PLATFORM_SDL_H_
3
4 #include "port.h"
5
6 // Configuration and command line parsing
7 void S9xLoadConfig(int argc, const char ** argv);
8 void S9xSetRomFile(const char * file);
9 extern struct config {
10         char romFile[PATH_MAX];
11         char hacksFile[PATH_MAX];
12         bool fullscreen;
13         bool xsp;
14         bool enableAudio;
15         bool enableMouse;
16         bool enableSuperScope;
17         unsigned short joypad1Mapping[256];
18         unsigned char action[256];
19         bool quitting;
20 } Config;
21
22 // Video
23 void S9xVideoToggleFullscreen();
24 void S9xVideoOutputFocus(bool hasFocus);
25
26 // Audio output
27 void S9xInitAudioOutput();
28 void S9xDeinitAudioOutput();
29 void S9xAudioOutputEnable(bool enable);
30
31 // Input actions
32 #define kActionNone                                             0
33 #define kActionQuit                                     (1U << 0)
34 #define kActionToggleFullscreen         (1U << 1)
35
36 void S9xDoAction(unsigned char action);
37
38 // Path things
39 const char * S9xFiletitle (const char * f);
40
41 #endif