switch DMNA Silpheed hack to timeslice hack
[picodrive.git] / pico / cd / pico.c
index 33899e4..7335158 100644 (file)
@@ -8,7 +8,7 @@ extern unsigned char formatted_bram[4*0x10];
 extern unsigned int s68k_poll_adclk;
 
 void (*PicoMCDopenTray)(void) = NULL;
-int  (*PicoMCDcloseTray)(void) = NULL;
+void (*PicoMCDcloseTray)(void) = NULL;
 
 
 PICO_INTERNAL void PicoInitMCD(void)
@@ -208,29 +208,6 @@ static __inline void update_chips(void)
        // update gfx chip
        if (Pico_mcd->rot_comp.Reg_58 & 0x8000)
                gfx_cd_update();
-
-       // delayed setting of DMNA bit (needed for Silpheed)
-       if (Pico_mcd->m.state_flags & 2) {
-               Pico_mcd->m.state_flags &= ~2;
-               if (!(Pico_mcd->s68k_regs[3] & 4)) {
-                       Pico_mcd->s68k_regs[3] |=  2;
-                       Pico_mcd->s68k_regs[3] &= ~1;
-#ifdef USE_POLL_DETECT
-                       if ((s68k_poll_adclk&0xfe) == 2) {
-                               SekSetStopS68k(0); s68k_poll_adclk = 0;
-                       }
-#endif
-               }
-       }
-}
-
-
-static __inline void getSamples(int y)
-{
-  int len = PsndRender(0, PsndLen);
-  if (PicoWriteSound) PicoWriteSound(len);
-  // clear sound buffer
-  PsndClear();
 }