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 

Flash0/1 path redirection to MS path?

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



Joined: 07 Jan 2007
Posts: 26

PostPosted: Sun Jan 07, 2007 9:18 pm    Post subject: Flash0/1 path redirection to MS path? Reply with quote

Anyone knows the code on how to redirect Flash0/1 path to Memory Stick path?

For e.g, when vshmain.prx tries to access FLASH0:/FONT, i'll redirect it to MS0:/DH/303/FONT. I believe this method was used in DevHook. Anyhelp will greatly appreciated. Thanks! :)
Back to top
View user's profile Send private message
Access_Denied



Joined: 07 Jan 2007
Posts: 2

PostPosted: Mon Jan 08, 2007 7:36 am    Post subject: Reply with quote

Actually, if you just want to redirect the font folder, used the fontmod hack by Skylark and TeamOverload.
Back to top
View user's profile Send private message
Slash



Joined: 07 Jan 2007
Posts: 26

PostPosted: Mon Jan 08, 2007 10:14 am    Post subject: Reply with quote

Access_Denied wrote:
Actually, if you just want to redirect the font folder, used the fontmod hack by Skylark and TeamOverload.


Thanks but I want to do it without hex-editing sony files. I can use a mod but I prefer it is done on all running modules. For e.g., if I were to emulate 3.03, all modules should be redirected to ms when their trying to read/write the flash. I think this involves memory patching?
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Wed Jan 10, 2007 4:42 am    Post subject: Reply with quote

You could hook sceIoOpen... This is the only viable way, since if you edit sony's files it might be dangerous for your system ;)

Oh, and devhook works by patching in memory the flashX IO function tables by its custom ones which use ms0.
Back to top
View user's profile Send private message
Slash



Joined: 07 Jan 2007
Posts: 26

PostPosted: Wed Jan 10, 2007 12:31 pm    Post subject: Reply with quote

adrahil wrote:
Oh, and devhook works by patching in memory the flashX IO function tables by its custom ones which use ms0.


Yes that's the method I want to know. When a module that patches memory to redirect flash0/1 to ms0, all succeeding modules should also use that method.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Wed Jan 10, 2007 11:26 pm    Post subject: Reply with quote

Well... what to say? There are two possibilities, the first of which was used in earlier versions of devhook:

1)sceIoAssign flash0 to ms0:/flash0 or something like this
2)Browse the kernel memory for the flashX IO Access Table and patching it accordingly. It is the method used by devhook and it's not trivial to work with this method...

I think that the first method will be enough, since you're not rebooting the whole system but only the VSH.
Back to top
View user's profile Send private message
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Thu Jan 11, 2007 9:31 am    Post subject: Reply with quote

First of all... TeamOverload had nothing to do with that hack, really. He found the text in the registry; the rest was Skylark and I.

Anyways, Skylark made a program that lets you enable/disable the font hack without any hex editing. It runs on every firmware with homebrew capability.

This program will do exactly what you're trying to do without having to hook any function calls or keep anything running in the background.

You can get it right here.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Thu Jan 11, 2007 9:41 am    Post subject: Reply with quote

sceIoAssign doesn't hook anything or run in background... It just changes the IO device blocks. :P
Nice app you have there :)
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