]> 4ch.mooo.com Git - 16.git/commitdiff
porting and tweaking sd more i added a cuted code file and a xxdiff friendlyer versio...
authorsparky4 <sparky4@cock.li>
Thu, 14 Sep 2017 15:31:49 +0000 (10:31 -0500)
committersparky4 <sparky4@cock.li>
Thu, 14 Sep 2017 15:31:49 +0000 (10:31 -0500)
src/lib/id_sd.c

index 943dede1093f35034ae12af43622597ae39e953a..cffa2d126f35cc76bde3bb9edd5a89178add4c70 100755 (executable)
@@ -1473,9 +1473,9 @@ SD_Startup(global_game_variables_t *gvar)
 \r
        if (SD_Started)\r
                return;\r
-\r
-//??   SDL_SetDS();\r
-\r
+#ifndef SD_USECATA3DSETTIMERSPEED\r
+       SDL_SetDS();\r
+#endif\r
        ssIsTandy = false;\r
 //SS   ssNoCheck = false;\r
        alNoCheck = false;\r
@@ -1520,10 +1520,11 @@ SD_Startup(global_game_variables_t *gvar)
        SoundUserHook = 0;\r
 \r
        t0OldService = getvect(8);      // Get old timer 0 ISR\r
-\r
+#ifdef SD_USECATA3DSETTIMERSPEED\r
        SDL_InitDelay();                        // SDL_InitDelay() uses t0OldService\r
 \r
        setvect(8,SDL_t0Service);       // Set to my timer 0 ISR\r
+#endif\r
        LocalTime = TimeCount = alTimeCount = 0;\r
 \r
        SD_SetSoundMode(sdm_Off, gvar);\r