Assign Flash To Folder

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

Moderators: cheriff, TyRaNiD

Post Reply
Mirko-psp
Posts: 6
Joined: Tue Mar 14, 2006 5:15 am

Assign Flash To Folder

Post by Mirko-psp »

i have used this code:

[code]
sceIoUnassign("flash0:");
sceIoAssign("flash0:","msstor0p1:/flash0","fatms0:",IOASSIGN_RDWR,NULL,0);
sceIoUnassign("flash1:");
sceIoAssign("flash1:","msstor0p1:/flash0","fatms0:",IOASSIGN_RDWR,NULL,0);
[/code]

but my app assign at flash 0 & 1 the root of memory stick...because...I can solve this problem???

help ;)
User avatar
harleyg
Posts: 123
Joined: Wed Oct 05, 2005 6:15 am

Post by harleyg »

you need

Code: Select all

sceIoUnassign("flash0:");
sceIoAssign("flash0:","msstor0p1:","fatms0:/flash0",IOASSIGN_RDWR,NULL,0);
sceIoUnassign("flash1:");
sceIoAssign("flash1:","msstor0p1:","fatms0:/flash1",IOASSIGN_RDWR,NULL,0);
 
Mirko-psp
Posts: 6
Joined: Tue Mar 14, 2006 5:15 am

Post by Mirko-psp »

don't work :(
hubevolution
Posts: 32
Joined: Wed Mar 17, 2004 6:59 pm

Post by hubevolution »

are you using this code on 1.50 or 2.01+ ?
Mirko-psp
Posts: 6
Joined: Tue Mar 14, 2006 5:15 am

Post by Mirko-psp »

1.50-...

this code work but assign the flash at the root of memory..

i want assign a folder!!!
lS[UMD/2kdlSU]
Posts: 8
Joined: Wed Oct 26, 2005 10:08 pm
Location: Shiga, Japan
Contact:

Post by lS[UMD/2kdlSU] »

Second argument of sceIoAssign must be BLOCK DEVICE, not folder.
And third argument must be FILE SYSTEM DRIVER. This is also not folder.

sceIoAssign function only makes connection between block device and file system.
SO, You need to write ORIGINAL DRIVER like MPH Firmware Launcher.

the source of mph firmware launcher can be found:
http://mphwebsite.tuxfamily.org/index.php?program=15
lS[UMD/2kdlSU] - now working as 67...
----------------------------------------------
site: jap | eng
jap blog: here
Post Reply