![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() ![]() Developer
|
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? |
|
|
|
|
|
#2 |
![]() ![]() ![]() Developer
|
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
|
|
|
|
|
|
#3 |
![]() ![]() ![]() Developer
|
thanks for your reply, I'll try that then. do you know where I can find the sources for those prx's ?
|
|
|
|
![]() |
| Tags |
| data , drive , file , mounting |
| Thread Tools | |
|
|