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 

Mount fatms0:\ as Flash0:\?

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



Joined: 22 Jan 2007
Posts: 23

PostPosted: Mon Jan 22, 2007 4:50 am    Post subject: Mount fatms0:\ as Flash0:\? Reply with quote

Hi, I was wondering if I could have some assistance.

I currently have the following code in my program:
Code:

sceIoUnassign("flash1:");
sceIoAssign("flash1:", "msstor0p1:", "fatms0:", IOASSIGN_RDWR, NULL, 0);
sceIoUnassign("flash0:");
sceIoAssign("flash0:", "msstor0p1:", "fatms0:", 0x01, NULL, 0);   


That code unassigns the flash0/1 areas, and reassigns them to the root of the memory stick. Now, the problem is, I'm getting sick of having the files I'm loading and writing going to the root, and I want it to go to "fatms0:\dump\" instead.

sceIoAssign will only assign to block devices (so I've been told), and I want to mount a directory as the flash.
I've seen in some source code around the internet (never found out if any worked) similar code which mounts to a folder like this:
Code:
sceIoAssign("flash0:", "msstor0p1:/" , "fatms0:/Flash0/", IOASSIGN_RDWR, NULL, 0);

Which is what I want to do.

It doesn't work at all.

Can anyone help me?
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 -> PSP 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