Api for rename or Mount your drive :)

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Yoshihiro
Posts: 12
Joined: Sat May 14, 2005 12:17 am

Api for rename or Mount your drive :)

Post by Yoshihiro »

hi i've just found an api for mount or change the name of your drive .

Code: Select all

STUB_START   "IoFileMgrForUser",0x40010000,0x000D0005 
STUB_FUNC    0xb2a628c1 sceIoAssign
STUB_END  

Code: Select all

int sceIoAssign(const char *name , const char *name2 ,const char *name3 ,int mode , int NULL_P , int unknown );

Code: Select all

#define MS0_DEF_FOR_USE     "NEWms0:"
#define FATMS_DEF           "fatms0:"
#define DEVELOPER_DEF       "msstor0p1:/"   

#define O_RDWR      0x0003

// used like that :)
sceIoAssign(MS0_DEF_FOR_USE, DEVELOPER_DEF, FATMS_DEF, O_RDWR, NULL, 0);
Now you can use NEWms0: in drive or umdX if you whant :) .


Yoshihiro
Image
MindWall
Posts: 70
Joined: Tue May 10, 2005 4:27 pm

Post by MindWall »

nice....! =)

next step is to mount isos or wads to drives ;)
Post Reply