Proposed lib - Mediamode

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
User avatar
neofar
Posts: 47
Joined: Wed Jan 21, 2004 2:40 am
Location: Spain
Contact:

Proposed lib - Mediamode

Post 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
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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)
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
User avatar
neofar
Posts: 47
Joined: Wed Jan 21, 2004 2:40 am
Location: Spain
Contact:

Post by neofar »

ummmm, more interesting feature

And works with the usb_mass driver?, in what version of ps2sdk it's implemented?
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Post Reply