Mount fatms0:\ as Flash0:\?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
pj1115
Posts: 23
Joined: Mon Jan 22, 2007 4:46 am

Mount fatms0:\ as Flash0:\?

Post by pj1115 »

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

I currently have the following code in my program:

Code: Select all

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: Select all

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?
Post Reply