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 

Dummying PRX Modules [SOLVED]

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



Joined: 08 Feb 2007
Posts: 155

PostPosted: Wed Sep 23, 2009 7:18 am    Post subject: Dummying PRX Modules [SOLVED] Reply with quote

Hello there, I'm back once more.

I wanted to dummy the Adhoc Usermode Modules in the 5.0 Firmware.
To do that all I gotta do is create all the exports and it should be fine but...

The exports are adressed using the original NIDs... as far as I know.

So how would I go about giving my own exports... the NIDs from the original module?

SOLVED:
Use PSP_EXPORT_FUNC_NID(functionname, 0x112233AA) instead of PSP_EXPORT_FUNC_HASH(functionname) - same for variables...
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?


Last edited by Coldbird on Fri Sep 25, 2009 9:45 am; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Fri Sep 25, 2009 1:21 am    Post subject: Reply with quote

Sorry for the doublepost but I gotta catch some attention here because Im asking for something different now.

Because obviously noone has a idea how to do that with PSPSDK means - which makes me believe that there is no PSPSDK way to do this without recoding the exporter...

I wanted to ask whether someone has a PRX documentation that they could link me up with?

The only ones I've found so far are all about theory but dont feature actual structures I could work with.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Sep 25, 2009 5:37 am    Post subject: Reply with quote

Look at the SDK/toolchain source code. That's generally the only "documentation" you'll ever find.
Back to top
View user's profile Send private message AIM Address
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Fri Sep 25, 2009 7:18 am    Post subject: Reply with quote

I hate such answers... I will do just that though... even though I dont like the idea.

EDIT: Solved. See first Post Edit for Solution.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Sep 25, 2009 12:08 pm    Post subject: Reply with quote

Cool - thanks for posting the solution.
Back to top
View user's profile Send private message AIM Address
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Fri Sep 25, 2009 7:06 pm    Post subject: Reply with quote

Just beware not using already existent NIDs, that would be a headache to debug...
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Fri Sep 25, 2009 10:28 pm    Post subject: Reply with quote

Thats exactly what I want to do though...
I intend to replace a firmware module with a selfcoded opensource one...

To do that though the nids have to match up with the nids from the firmware module.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sun Sep 27, 2009 6:52 pm    Post subject: Reply with quote

Hi, could I ask what the purpose/project is?
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Thu Oct 15, 2009 12:37 am    Post subject: Reply with quote

Sorry for my late response...
The reason why I'm doing this is to prevent the adhoc modules from initializing the WiFi Hardware in adhoc mode aswell as to dummy the Adhoc Functions for tunneling it through a Infrastructure Connection.

I must admit though I added the solved tag to this topic a bit too soon...
Even though I can set the NIDs manually... replacing the module results in a PSP freeze upon loading the module.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
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