diff options
| -rwxr-xr-x | libpcsxcore/cdriso.c | 3 | ||||
| -rwxr-xr-x | libpcsxcore/cdrom.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index dd455cd1..6548e787 100755 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -707,11 +707,12 @@ static int parsecue(const char *isofile) { // Check if extension is mp3, etc, and send to decoder if not lazy decoding if ((ti[numtracks + 1].cddatype = get_cdda_type(filepath)) > BIN) { int seconds = get_compressed_cdda_track_length(filepath) + 0; + const boolean lazy_decode = TRUE; // TODO: config param + ti[numtracks + 1].len_decoded_buffer = 44100 * (16/8) * 2 * seconds; strcpy(ti[numtracks + 1].filepath, filepath); file_len = ti[numtracks + 1].len_decoded_buffer/2352; - const boolean lazy_decode = TRUE; // TODO: config param if (!lazy_decode) { // accurate length do_decode_cdda(&(ti[numtracks + 1]), numtracks + 1); fseek(ti[numtracks + 1].handle, 0, SEEK_END); diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 9635f097..2cac3a75 100755 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -107,7 +107,7 @@ unsigned char Test23[] = { 0x43, 0x58, 0x44, 0x32, 0x39 ,0x34, 0x30, 0x51 }; #define STATUS_ERROR (1<<0) // 0x01 /* Errors */ -#define ERROR_NOT_READY (1<<7) // 0x80 +#define ERROR_NOTREADY (1<<7) // 0x80 #define ERROR_INVALIDCMD (1<<6) // 0x40 #define ERROR_INVALIDARG (1<<5) // 0x20 @@ -1069,7 +1069,7 @@ void cdrInterrupt() { case DRIVESTATE_PREPARE_CD: SetResultSize(2); cdr.Result[0] = cdr.StatP | STATUS_ERROR; - cdr.Result[1] = ERROR_NOT_READY; + cdr.Result[1] = ERROR_NOTREADY; cdr.Stat = DiskError; break; } |
