Page 1 of 1

DsReadFile Problems

Posted: September 20th, 2012, 9:35 pm
by Shadow
I am having trouble trying to load a *.TIM from the CD-ROM into RAM.

I was using "libds.h" to do this while then using a separate function to load "DsReadFile("\\DATA\\TIM\\IMAGE1.TIM;1",(u_long *)(0x80011000),0);" but it wont work.

All I get is: "C:\WINDOWS\TEMP\PQ14 : Error : Symbol 'DsReadFile' not defined"

Re: DsReadFile Problems

Posted: September 23rd, 2012, 8:35 pm
by Mdrb
Hum... never tried to access data with libds but it seems that the linker doesn't find this lib. So you need to edit the PSYQ/BIN/PSYQ.INI, in the ccpsx section add "libds.lib" to the values of the stdlib key. Like this :

Code: Select all

[ccpsx]
stdlib=libgs.lib libgte.lib libgpu.lib libspu.lib libsnd.lib libetc.lib libapi.lib libsn.lib libc.lib libcd.lib libcard.lib libmath.lib libds.lib
You can also use the libcd instead (this method seems to be more commonly used). Give a look at the PSX Music Disk sources if you need an example.

Re: DsReadFile Problems

Posted: September 23rd, 2012, 9:56 pm
by Shadow
That sounds about right and it should fix it up :)