engine/dc/gdrom.c
/////////////////////////////////////////////////////////////////////////////
//
// Blocks until the prior read is done (you can ensure it won't block if you
// check gdrom_poll yourself), and then queues up a new read
//
// Danger: you do not want to try doing this on out-of-range sectors
//
Blocks until the prior read is done (you can ensure it won't block if you
check gdrom_poll yourself), and then queues up a new read

you do not want to try doing this on out-of-range sectors
Blocks until the prior read is done ( you can ensure it won ' t block if you check gdrom_poll yourself ) and then queues up a new read you do not want to try doing this on out - of - range sectors
void gdrom_readsectors(void *dest, int lba, int num) {
  while(gdrom_poll());
  currently_executing_read_dest = dest;
  currently_executing_read_lba  = lba;
  currently_executing_read_size = num;
  gdrom_queue_current_read();
}
void gdrom_readsectors ( void * dest , int lba , int num ) { while ( gdrom_poll ( ) ) ; currently_executing_read_dest = dest ; currently_executing_read_lba = lba ; currently_executing_read_size = num ; gdrom_queue_current_read ( ) ; }
Blocks until the prior read is done (you can ensure it won't block if you
check gdrom_poll yourself), and then queues up a new read
Blocks until the prior read is done ( you can ensure it won ' t block if you check gdrom_poll yourself ) and then queues up a new read
//printf("gdrom_readsectors(dest,lba=%d,num=%d)\n",lba,num);