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: Select all
vlfGuiLateralMenu(10, items, 0, my_menu_sel, 10);
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: Select all
PSP_MODULE_INFO("MyVLF", 0x800, 2, 0);
PSP_MAIN_THREAD_ATTR(0);
Than I tried to build up my EBOOT in order to be the MyVLF.prx loader: just a main.c with
Code: Select all
PSP_MODULE_INFO("MYVLFPRXLOADER", 1, 1, 0);
PSP_MAIN_THREAD_ATTR(0);
All my attempts raised errors loading the prx and no execution at all is visible:
Code: Select all
pspSdkLoadStartModule("./prx/MyVLF.prx", PSP_MEMORY_PARTITION_KERNEL)
pspSdkLoadStartModule("./prx/MyVLF.prx", PSP_MEMORY_PARTITION_USER)
sceKernelLoadModule("./prx/MyVLF.prx", 0,NULL)
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