static int _argc = 0;
static char **_argv = NULL;
-static bool cmdline(const char *cmd)
+bool cmdline(const char *cmd)
{
for (int i = 1; i < _argc; i++)
{
SDL_WM_ToggleFullScreen(SDL_GetVideoSurface());
}
- else if (e.key.keysym.sym < SDLK_LAST)
+ if (e.key.keysym.sym < SDLK_LAST)
{
if (KeyTable[e.key.keysym.sym] != 0xffff)
SetKey(KeyTable[e.key.keysym.sym]);
// the context is destroyed and libGL unloaded by SDL_Quit().
pglDeleteTextures = glDeleteTextures_doNothing;
+ #if PLATFORM_LINUX
+ _exit(0); // !!! FIXME: hack...crashes on exit!
+ #endif
+
#elif (defined WIN32)
if (hRC)
{
extern int channels[100];
extern FSOUND_SAMPLE * samp[100];
- extern FSOUND_STREAM * strm[10];
+ extern FSOUND_STREAM * strm[20];
extern "C" void PlaySoundEx(int chan, FSOUND_SAMPLE *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused)
{