2001-01-19 03:34:09 +00:00
|
|
|
// SDL architecture support
|
|
|
|
#include <conf.h>
|
|
|
|
#ifdef __ENV_LINUX__
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <SDL/SDL.h>
|
|
|
|
#include "text.h"
|
|
|
|
#include "event.h"
|
|
|
|
#include "error.h"
|
|
|
|
#include "args.h"
|
2001-01-20 13:49:18 +00:00
|
|
|
#include "digi.h"
|
2001-01-19 03:34:09 +00:00
|
|
|
|
|
|
|
extern void d_mouse_init();
|
|
|
|
|
|
|
|
void sdl_close()
|
|
|
|
{
|
|
|
|
SDL_Quit();
|
|
|
|
}
|
|
|
|
|
|
|
|
void arch_sdl_init()
|
|
|
|
{
|
|
|
|
// Initialise the library
|
|
|
|
//edited on 01/03/99 by Matt Mueller - if we use SDL_INIT_EVERYTHING, cdrom is initialized even if -nocdaudio is used
|
|
|
|
#ifdef SDL_INPUT
|
2001-01-24 04:29:48 +00:00
|
|
|
if (!FindArg("-nomouse"))
|
2001-01-19 03:34:09 +00:00
|
|
|
d_mouse_init();
|
|
|
|
#endif
|
2001-01-24 04:29:48 +00:00
|
|
|
if (!FindArg("-nosound"))
|
2001-01-19 03:34:09 +00:00
|
|
|
digi_init();
|
|
|
|
atexit(sdl_close);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __ENV_LINUX__
|