/*! Read and cache the CD's Track Table of Contents and track info. Return true if successful or false if an error. */ static bool read_toc_win32 (void *p_user_data) { _img_private_t *p_env = p_user_data; bool ret; if( p_env->hASPI ) { ret = read_toc_aspi( p_env ); } else { ret = read_toc_win32ioctl( p_env ); } if (ret) p_env->gen.toc_init = true ; return ret; }
/*! Read and cache the CD's Track Table of Contents and track info. Return true if successful or false if an error. */ static bool read_toc_win32 (void *p_user_data) { _img_private_t *p_env = p_user_data; bool ret; #if !(defined (WIN32) || defined (_XBOX)) if( p_env->hASPI ) { ret = read_toc_aspi( p_env ); } else { ret = read_toc_win32ioctl( p_env ); } #else ret = read_toc_win32ioctl( p_env ); #endif if (ret) p_env->gen.toc_init = true ; return ret; }