first round of patches
[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 extern struct config {
9         char romFile[PATH_MAX];
10         char hacksFile[PATH_MAX];
11         bool fullscreen;
12         bool xsp;
13         bool enableAudio;
14         bool enableMouse;
15         bool enableSuperScope;
16         unsigned short joypad1Mapping[256];
17         unsigned char action[256];
18         bool quitting;
19 } Config;
20
21 // Video
22 void S9xVideoToggleFullscreen();
23 void S9xVideoOutputFocus(bool hasFocus);
24
25 // Audio output
26 void S9xInitAudioOutput();
27 void S9xDeinitAudioOutput();
28 void S9xAudioOutputEnable(bool enable);
29
30 // Input actions
31 #define kActionNone                                             0
32 #define kActionQuit                                     (1U << 0)
33 #define kActionToggleFullscreen         (1U << 1)
34
35 void S9xDoAction(unsigned char action);
36
37 // Path things
38 const char * S9xFiletitle (const char * f);
39
40 #endif