Finding and calling a specific PRX export.

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

Moderators: cheriff, TyRaNiD

Post Reply
Oobles
Site Admin
Posts: 347
Joined: Sat Jan 17, 2004 9:49 am
Location: Melbourne, Australia
Contact:

Finding and calling a specific PRX export.

Post by Oobles »

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.
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

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