X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fcd%2Fbuffering.c;h=25f54ffc9038176a10a605e8ea4768d6394498f8;hb=ba6e8bfd4b707aab042e47bc3e2a14f70be01075;hp=dbf7b28436fbe1897e1f0e6b08fe52a2f6c3b6c7;hpb=1cfc5cc4ce06642b9bc45ca3b9d32793718e9455;p=picodrive.git diff --git a/pico/cd/buffering.c b/pico/cd/buffering.c index dbf7b28..25f54ff 100644 --- a/pico/cd/buffering.c +++ b/pico/cd/buffering.c @@ -1,5 +1,10 @@ -// Buffering handling -// (c) Copyright 2007, Grazvydas "notaz" Ignotas +/* + * Buffering handling + * (C) notaz, 2007,2008 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include "../pico_int.h" @@ -9,6 +14,8 @@ static int prev_lba = 0x80000000; static int hits, reads; +#undef dprintf +#define dprintf(...) void PicoCDBufferInit(void) { @@ -109,7 +116,7 @@ PICO_INTERNAL void PicoCDBufferRead(void *dest, int lba) if (is_bin) { int i = 0; -#if REDUCE_IO_CALLS +#ifdef _PSP_FW_VERSION int bufs = (read_len*2048) / (2048+304); pm_read(cd_buffer, bufs*(2048+304), Pico_mcd->TOC.Tracks[0].F); for (i = 1; i < bufs; i++)