QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

mounting a drive to a data file

This is a discussion on mounting a drive to a data file within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi, I'd like to mount a virtual drive pointing to a data file (in iso like format). I need this ...

Reply
 
LinkBack Thread Tools
Old 03-28-2008, 04:52 AM   #1


Developer
 
daaa57150's Avatar
 
Join Date: Sep 2006
Location: france
Posts: 167
Trader Feedback: 0
Default mounting a drive to a data file

Hi,

I'd like to mount a virtual drive pointing to a data file (in iso like format). I need this so I can "pack" my external files for my homebrews in a transparent way: I could then use c++ streams, and oslib load functions, and everything I wrote until now without caring where the file is really stored.
For example, I'd like to pack some images in an iso-like file "images.dat" and mount that file as a drive lets say "vfs0:/". I counld then use oslLoadImageFilePng("vfs0 :/image1.png", ...) transparently. I really only need read access.
I don't want to use libraries like PhysFS that makes you use API calls for file io, I need a way so that I can use existing things (code I already wrote, libraries...) without modifying them, wich I would have to do with PhysFS.
I got some clues on ps2dev: implement a filesystem and use sceIoAddDrv from pspiofilemgr_kernel.h. That seems to be some hard work, that I'll try to do but I just thought that maybe someone here could have some other ideas, could give me some help or maybe wrote something similar?
__________________
Try my latest game:
MEGA DROPS 2

daaa57150 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-28-2008, 05:18 AM   #2


Developer
 
Join Date: Sep 2005
Posts: 480
Trader Feedback: 0
Default

that's the only way... if you want a device you need to do a driver for it. you can grab psplink or the various ciso/jso/dax prx for devhook as sample. else you could reimplement make a wrapper (you need to reimplement sceio functions) and hook your libraries to it
weltall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-31-2008, 12:59 AM   #3


Developer
 
daaa57150's Avatar
 
Join Date: Sep 2006
Location: france
Posts: 167
Trader Feedback: 0
Default

thanks for your reply, I'll try that then. do you know where I can find the sources for those prx's ?
__________________
Try my latest game:
MEGA DROPS 2

daaa57150 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-31-2008, 04:08 AM   #4


Developer
 
Join Date: Sep 2005
Posts: 480
Trader Feedback: 0
Default

well check old devhook packages and search forums maybe also the download section might help. psplink is on ps2dev svn repository
weltall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
data , drive , file , mounting

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 02:20 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us