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 

[SOLVED] VLF menu interface within MyApplication

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



Joined: 11 Jul 2007
Posts: 178

PostPosted: Mon Sep 14, 2009 6:53 am    Post subject: [SOLVED] VLF menu interface within MyApplication Reply with quote

Hi all,
I'm back with some new developments on PSP-2000_to_3000 (embedded microphone!).
My purpose is to use wonderful VLF 1.0 library lateral menu into MyApplication, reading back the selected menu option and doing something different according to what selected.
Well... working with VLF lib1.0 example (we all have not enough thanks to the glorius author...)
I'm using crt0.c as it is, main.c with just a modification for my Lateral Menu, because I'm using 10 menu options:
Code:
   vlfGuiLateralMenu(10, items, 0, my_menu_sel, 10);


With Makefile as it is in the VLF1.0 example I make my EBOOT and it works fine.

Now, I'd like to have MyApplication calling the Lateral Menu, receiving back the user selection: a number between 0 and 10 in order to do whatever I want.
No way to run this way, as from my unsuccessful Solutions:
- I cannot link crt0.c and main.c into my application because VLF is using its own libc and if I merge all together errors are rised. Conclusion: VLF interface should remain isolated.
- I created crt0.c & main.c as a PRX, using
Code:
PSP_MODULE_INFO("MyVLF", 0x800, 2, 0);
PSP_MAIN_THREAD_ATTR(0);

leaving all other elements as they are, included Makefile, I am generating a MyVLF.prx.
Than I tried to build up my EBOOT in order to be the MyVLF.prx loader: just a main.c with
Code:
PSP_MODULE_INFO("MYVLFPRXLOADER", 1, 1, 0);
PSP_MAIN_THREAD_ATTR(0);

but I cannot load and look with satisfaction at execution of MyVLF.prx as expected.
All my attempts raised errors loading the prx and no execution at all is visible:
Code:
pspSdkLoadStartModule("./prx/MyVLF.prx", PSP_MEMORY_PARTITION_KERNEL)
pspSdkLoadStartModule("./prx/MyVLF.prx", PSP_MEMORY_PARTITION_USER)
sceKernelLoadModule("./prx/MyVLF.prx", 0,NULL)


May be my un-expert (stupid) programming state is the reason, or something impossible to do was desired or, and that's why I'm writing my question here, something is wrong somewhere in my code or assumptions...

I've investigated also on some other VLF applications: resurrection.prx within unbricker is using VLF and it has been generated as a prx, but I cannnot see how it is loaded by the application EBOOT. Examples as "modular", prx generation tutorial etc... are not helping me.
I'm thinking that something is wrong in calling, loading, starting and executing MyVLF.prx, displaying the expected lateral menu and providing back the user selection.

Thanks for any help...

my best regards


Last edited by mypspdev on Sat Sep 19, 2009 10:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Mon Sep 14, 2009 9:36 pm    Post subject: Reply with quote

I don't understand what you're trying to do but it looks like you want to display only the VLF lateral menu on top of your existing application. Not gonna happen (easily). There will be graphical corruption. Unless you modify your VLF based PRX to check with your main executable before each rendering loop and manage them accordingly.

Presently its designed to be launched as the main executable in an application and it should be doing all the rendering. There shouldn't be any problem loading it as a PRX provided you're not already doing anything that interferes obviously.
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Mon Sep 14, 2009 10:46 pm    Post subject: Reply with quote

Just for better understanding, here is zip as example of my [crazy] purpose.
....... please, some parts of code are not yet complete, first step is to run VLF menu, further step is to manage menu selection, by the way not yet complete....
It's containing the
- VLFmenu.prx package with my lateral menu selection
- EBOOT for loading VLFmenu.prx in order to get back menu selection

Within my EBOOT package, main.c is providing (stupid approach!?)different ways I know to Load and Start a prx in order to check errors, just to show my unsuccessful tests.

No way to Load it and Start it to drawing and running VLF Lateral menu, receiving back selected option.

This way up to me could be the best GUI interface for our homebrews, fully pspsdk compatible, easy standard look and feel.

Thanks for suggestion about where I'm wrong and how to correct it.

Thanks and best regards
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