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 

Finding and calling a specific PRX export.

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


Joined: 17 Jan 2004
Posts: 362
Location: Melbourne, Australia

PostPosted: Wed Mar 22, 2006 12:01 pm    Post subject: Finding and calling a specific PRX export. Reply with quote

Is it possible to find and call a specific PRX export from user mode?

I have added module loading to LuaPlayer. At this point it relies on the module registering itself with LuaPlayer during startup. One problem with this is that it does not allow the app to be restarted as the module startup will not be called again.

The official Lua loadlib function relies on passing a function name which is called. This is instead of relying on the modules startup function.

I have been looking for a way to find and call a specifc PRX export, however, so far I've only found the various methods used in pspsdk and psplink which rely on the kernel mode only sceKernelFindModuleByUID. Is there an easier way of doing this, or do I need to add an export to my kernel mode bootstrap which will do this? This would seem odd, as I can already load and start a module from user mode.

Any ideas?
Thanks,
David. aka Oobles.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Wed Mar 22, 2006 4:02 pm    Post subject: Reply with quote

i might be reading this wrong and please forgive
if i misunderstood ...is app in user mode and said app
loads modules in user mode? ...and start even

or is it like i believe that you use a constructor
for loading and then switch down to user mode
to use exports from your modules

i am in the dark here
cheers
_________________
10011011 00101010 11010111 10001001 10111010
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