I have the main module that loads an export-only module.
Now the question is it possible for the module to call functions coded in the main module?
How to do that.
I'll tell you now why i wanna do that..
i want to create a ... shell (what a new thing!) using more than one module, linke the sony xmb.
So i tought to create a man module for the main menu and than other modules for the various functions (like usb connection, file browser, picture viewer, music player, etc), but the problem is the rendering of graphical objects.
Since i'm using moonlight vlf lib, i thought to make the main function export the functions imported from vlf.prx. this way, the vlf.prx has to be loaded once (by main module) and the sub-modules use the exported functions of main module to draw objects (menus, labels, pictures, etc)
If you have a better solution for that, don't be afraid to suggest it.
many thanks
more info on modules
I think that you want to do is simply export a function from a loaded module! ( or not? )
Try with the module tutorial, here is writed how to export a function:
http://ps2dev.org/psp/Tutorials
Try with the module tutorial, here is writed how to export a function:
http://ps2dev.org/psp/Tutorials
no, it's not exacty that thing.
let me show you better my situation...
i have 2 modules let's call the first main module (and it is the one with the main function that is a program itself, let's call the second module sub-module that is a module without main function.
the submodule is loaded by the main module and it exports functions used by the main module. now i want the submodule to use the vlf lib (or onther graphics library) loaded with the main module by the submodule.
to do that i thought that the main module can export some functions used to render graphics, but i don't know how to make the submodule use those functions.. can it call those functions without loading (again) the main module, because that way it would be an endless loop of loading modules and nothing will work.
let me show you better my situation...
i have 2 modules let's call the first main module (and it is the one with the main function that is a program itself, let's call the second module sub-module that is a module without main function.
the submodule is loaded by the main module and it exports functions used by the main module. now i want the submodule to use the vlf lib (or onther graphics library) loaded with the main module by the submodule.
to do that i thought that the main module can export some functions used to render graphics, but i don't know how to make the submodule use those functions.. can it call those functions without loading (again) the main module, because that way it would be an endless loop of loading modules and nothing will work.
Ciao! from Italy