From e4164ba7f31989dd3bdc54928aee5c086b96b3b2 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 14 Sep 2017 10:31:49 -0500 Subject: [PATCH] porting and tweaking sd more i added a cuted code file and a xxdiff friendlyer version of catacomb 3d's sd C file ^^ --- src/lib/id_sd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); -- 2.39.2