 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
phobox
Joined: 24 Mar 2008 Posts: 140
|
Posted: Wed Aug 13, 2008 6:41 pm Post subject: more info on modules |
|
|
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 _________________ Ciao! from Italy |
|
| Back to top |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Thu Aug 14, 2008 4:43 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
phobox
Joined: 24 Mar 2008 Posts: 140
|
Posted: Thu Aug 14, 2008 7:56 am Post subject: |
|
|
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. _________________ Ciao! from Italy |
|
| Back to top |
|
 |
|
|
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
|