X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fcd%2Fpico.c;h=733515802eac7ae29aaa837cf7afb5c6db4668ae;hb=ef090115c8ea74938ed44e36a42e4a53d4447a9e;hp=33899e494423f02c6518feabce7c51305a74bea1;hpb=1cfc5cc4ce06642b9bc45ca3b9d32793718e9455;p=picodrive.git diff --git a/pico/cd/pico.c b/pico/cd/pico.c index 33899e4..7335158 100644 --- a/pico/cd/pico.c +++ b/pico/cd/pico.c @@ -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(); }