Dummying PRX Modules [SOLVED]

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Coldbird
Posts: 97
Joined: Thu Feb 08, 2007 7:22 am

Dummying PRX Modules [SOLVED]

Post by Coldbird »

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...
Last edited by Coldbird on Fri Sep 25, 2009 9:45 am, edited 2 times in total.
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
User avatar
Coldbird
Posts: 97
Joined: Thu Feb 08, 2007 7:22 am

Post by Coldbird »

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?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Look at the SDK/toolchain source code. That's generally the only "documentation" you'll ever find.
User avatar
Coldbird
Posts: 97
Joined: Thu Feb 08, 2007 7:22 am

Post by Coldbird »

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?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Cool - thanks for posting the solution.
m0skit0
Posts: 191
Joined: Tue Jun 02, 2009 8:58 pm

Post by m0skit0 »

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.
User avatar
Coldbird
Posts: 97
Joined: Thu Feb 08, 2007 7:22 am

Post by Coldbird »

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?
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

Hi, could I ask what the purpose/project is?
If not actually, then potentially.
User avatar
Coldbird
Posts: 97
Joined: Thu Feb 08, 2007 7:22 am

Post by Coldbird »

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