X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcd%2Fcd_sys.c;h=03bf0d222ed8ec1781890c4f3a0bdc0d0cff2b7b;hb=6a13ef3f56a80ac698d463f5d00235ea2a090f52;hp=61482e152dc7b043a7872d079aeeae142aed65c1;hpb=c6196c0f0108d27df27d576ece320b3ec5705bb3;p=picodrive.git diff --git a/Pico/cd/cd_sys.c b/Pico/cd/cd_sys.c index 61482e1..03bf0d2 100644 --- a/Pico/cd/cd_sys.c +++ b/Pico/cd/cd_sys.c @@ -13,8 +13,6 @@ #include "cd_sys.h" #include "cd_file.h" -#define cdprintf dprintf -//#define cdprintf(x...) #define DEBUG_CD #define TRAY_OPEN 0x0500 // TRAY OPEN CDD status @@ -198,16 +196,16 @@ PICO_INTERNAL void Reset_CD(void) } -int Insert_CD(char *iso_name, int is_bin) +int Insert_CD(char *cdimg_name, int type) { - int ret = 0; + int ret = 1; CD_Present = 0; Pico_mcd->scd.Status_CDD = NOCD; - if (iso_name != NULL) + if (cdimg_name != NULL && type != CIT_NOT_CD) { - ret = Load_ISO(iso_name, is_bin); + ret = Load_CD_Image(cdimg_name, type); if (ret == 0) { CD_Present = 1; Pico_mcd->scd.Status_CDD = READY; @@ -491,8 +489,7 @@ PICO_INTERNAL int Play_CDD_c3(void) else { Pico_mcd->s68k_regs[0x36] &= ~0x01; // AUDIO - //CD_Audio_Starting = 1; - FILE_Play_CD_LBA(); + cdda_start_play(); } if (Pico_mcd->scd.Cur_Track == 100) Pico_mcd->cdd.Minute = 0x0A02; @@ -594,8 +591,7 @@ PICO_INTERNAL int Resume_CDD_c7(void) else { Pico_mcd->s68k_regs[0x36] &= ~0x01; // AUDIO - //CD_Audio_Starting = 1; - FILE_Play_CD_LBA(); + cdda_start_play(); } if (Pico_mcd->scd.Cur_Track == 100) Pico_mcd->cdd.Minute = 0x0A02;