Page 1 of 1

Problem with CdReadFile...Help needed

Posted: June 2nd, 2013, 11:41 pm
by LameGuy64
Whenever I call CdReadFile or call it multiple times, it sometimes freezes depending on the number of files I stuck into the CD image.

My program uses a pretty simple cache system using a 16KB buffer to make file access a lot easier for me to do. The problem is, when CdReadFile is called again to read more data from the file into the buffer, it sometimes locks up and the CD activity icon blinks in rapid bursts in pSX indicating a drive malfunction error.

I'm not sure if this problem is caused by my code, how I mastered the CD image, or is it a bug in the emulator. I can provide the source if necessary.

EDIT: Never mind about this...I figured out that the read issues were caused by a buggy ISO mastering tool I used. When I switched to PSx CD-Gen and DiscPatcher, all the read problems were solved.