X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.c;h=bb185774acfe6c4ee98d5f7fee174c67b45b6239;hp=df4099e162cedaa88202b97e56f9446deff7a692;hb=e0e2697df0d0da483a91b1248c120aef6b3caf9b;hpb=41e8d55b767c898f20c29a1b0b8d2ef8840be2f5 diff --git a/src/init.c b/src/init.c index df4099e1..bb185774 100644 --- a/src/init.c +++ b/src/init.c @@ -48,7 +48,8 @@ void OpenAll(void) InitProgramInfo(UNIX_USERDATA_DIRECTORY, PROGRAM_TITLE_STRING, WINDOW_TITLE_STRING, ICON_TITLE_STRING, X11_ICON_FILENAME, X11_ICONMASK_FILENAME, - MSDOS_POINTER_FILENAME); + MSDOS_POINTER_FILENAME, + COOKIE_PREFIX, GAME_VERSION_ACTUAL); InitPlayerInfo(); @@ -143,121 +144,6 @@ void InitSound() StartSoundserver(); } -void InitJoysticks() -{ -#if defined(TARGET_SDL) - static boolean sdl_joystick_subsystem_initialized = FALSE; -#endif - - int i; - - /* always start with reliable default values */ - joystick.status = JOYSTICK_NOT_AVAILABLE; - for (i=0; i= SDL_NumJoysticks()) - joystick_nr = -1; - - /* misuse joystick file descriptor variable to store joystick number */ - joystick.fd[i] = joystick_nr; - - /* this allows subsequent calls to 'InitJoysticks' for re-initialization */ - if (Check_SDL_JoystickOpened(joystick_nr)) - Close_SDL_Joystick(joystick_nr); - - if (!setup.input[i].use_joystick) - continue; - - if (!Open_SDL_Joystick(joystick_nr)) - { - Error(ERR_WARN, "cannot open joystick %d", joystick_nr); - continue; - } - - joystick.status = JOYSTICK_ACTIVATED; - } - -#else /* !TARGET_SDL */ - -#if defined(PLATFORM_UNIX) - for (i=0; i= num_joysticks) - joystick_nr = -1; - - /* misuse joystick file descriptor variable to store joystick number */ - joystick.fd[i] = joystick_nr; - } -#endif - -#endif /* !TARGET_SDL */ -} - void InitGfx() { int i;