forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stdio.c - device types

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Wed Aug 23, 2006 4:44 am    Post subject: stdio.c - device types Reply with quote

I was reviewing the stdio. code and noticed that newer device types are not specified (usb_mass, hdd). So __stdio_get_fd_type() always returns -1 if used.

What about adding these devices ? this would allow to access any device using the standard functions (fopen, fread, ...) and without having to care about the device itself. So each function in stdio.c could check __iob[i].type and use (for example) fioOpen or fileXioOpen depending of the device type.

the only problem is that it adds a dependency with fileXio, but is it really a problem ?

of course it's not really needed with usb_mass (as default case is fine for it), but it could be nice for the hdd.

thank you for your feedback :)

evilo.
_________________
http://psxdev.info/evilo/
Back to top
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Tue Aug 29, 2006 6:34 pm    Post subject: Reply with quote

any comments ?

thanks beforehands.
_________________
http://psxdev.info/evilo/
Back to top
View user's profile Send private message Visit poster's website
Herben



Joined: 25 Jan 2004
Posts: 107

PostPosted: Wed Nov 22, 2006 4:08 pm    Post subject: Reply with quote

I doubt you'll find anyone who objects to this. And if they do, just send them to tubgirl.com ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group