1 #ifndef _PLATFORM_SDL_H_
2 #define _PLATFORM_SDL_H_
6 // Configuration and command line parsing
7 void S9xLoadConfig(int argc, const char ** argv);
8 void S9xSetRomFile(const char * file);
10 char romFile[PATH_MAX + 1];
11 char hacksFile[PATH_MAX + 1];
12 /** Unfreeze from .frz.gz snapshot on start */
14 /** Freeze to .frz.gz on exit */
16 /** Create fullscreen surface */
18 /** Using xsp (thus take care of doubling coordinates where appropiate) */
20 /** Audio output enabled */
22 unsigned short joypad1Mapping[256];
23 unsigned char action[256];
28 void S9xVideoToggleFullscreen();
29 void S9xVideoOutputFocus(bool hasFocus);
32 void S9xInitAudioOutput();
33 void S9xDeinitAudioOutput();
34 void S9xAudioOutputEnable(bool enable);
38 #define kActionQuit (1U << 0)
39 #define kActionToggleFullscreen (1U << 1)
41 void S9xDoAction(unsigned char action);
44 const char * S9xFiletitle (const char * f);