Page 1 of 1

Proposed lib - Mediamode

Posted: Mon Apr 25, 2005 6:35 pm
by neofar
hiz allz,

As you know I was working in llibplanar, with the beta 1.0 I need to add some math funciones (sinf and cosf) for not including libm.a, but I see that in the las ps2sdk is including the libm, so I don't need to maintain this functions,

Now, I have another set of functions added in llibplanar that could be very interesting to add in ps2sdk to make more useful

It's the tipical mediamode functions for load files from any devide (in my code only test fron Host, CD, and USB_Mass)

Please see code in -> http://ps2dev.ofcode.com/loadFile.zip

Posted: Mon Apr 25, 2005 10:07 pm
by pixel
Well, I've just added some code to the sdk to complete some features that were planned, and never implemented, such as chdir. Now you can chdir("mc0:/foo"); then fopen("bar", "r"); and it'll open "mc0:/foo/bar". Enjoy! (and don't forget to test it as well! :P)

Posted: Tue Apr 26, 2005 12:00 am
by neofar
ummmm, more interesting feature

And works with the usb_mass driver?, in what version of ps2sdk it's implemented?

Posted: Tue Apr 26, 2005 12:10 am
by pixel
I haven't added any code to support usb mass or anything. I don't quite know how this work or so. Please check stdio.c and patch it if you want.