From: sparky4 Date: Thu, 14 Sep 2017 15:31:49 +0000 (-0500) Subject: porting and tweaking sd more i added a cuted code file and a xxdiff friendlyer versio... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;ds=inline;h=e4164ba7f31989dd3bdc54928aee5c086b96b3b2;p=16.git porting and tweaking sd more i added a cuted code file and a xxdiff friendlyer version of catacomb 3d's sd C file ^^ --- diff --git a/src/lib/id_sd.c b/src/lib/id_sd.c index 943dede1..cffa2d12 100755 --- a/src/lib/id_sd.c +++ b/src/lib/id_sd.c @@ -1473,9 +1473,9 @@ SD_Startup(global_game_variables_t *gvar) if (SD_Started) return; - -//?? SDL_SetDS(); - +#ifndef SD_USECATA3DSETTIMERSPEED + SDL_SetDS(); +#endif ssIsTandy = false; //SS ssNoCheck = false; alNoCheck = false; @@ -1520,10 +1520,11 @@ SD_Startup(global_game_variables_t *gvar) SoundUserHook = 0; t0OldService = getvect(8); // Get old timer 0 ISR - +#ifdef SD_USECATA3DSETTIMERSPEED SDL_InitDelay(); // SDL_InitDelay() uses t0OldService setvect(8,SDL_t0Service); // Set to my timer 0 ISR +#endif LocalTime = TimeCount = alTimeCount = 0; SD_SetSoundMode(sdm_Off, gvar);