![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Problem with VLF 1.0 within the PSP Homebrew and Hacks Discussion forums, part of the PSP Development, Hacks, and Homebrew category; Hi, I have been doing some menus with these libraries, but going from one menu to another it gives me ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Join Date: Oct 2009
Real First Name: Mizar
Location: Spain
Just Played: Gran Turismo
Posts: 1
Trader Feedback: 0
|
Hi, I have been doing some menus with these libraries, but going from one menu to another it gives me a crash, this only happens to me VLF library 1.0, the beta works perfectly me. Then I leave the code:
Code:
void MainMenu(int sel);
int option = 0;
int BackToMainMenu()
{
vlfGuiCancelCentralMenu();
vlfGuiCancelBottomDialog();
MainMenu(option);
return VLF_EV_RET_NOTHING;
}
void SubMenu(int sel)
{
char *items2[] =
{
"PSP Classic",
"PSP Slim / Brite"
};
vlfGuiCentralMenu(2, items2, sel, NULL, 0, 0);
vlfGuiBottomDialog(VLF_DI_BACK, VLF_DI_ENTER, 1, 0, VLF_DEFAULT, BackToMainMenu);
}
int OnMainMenuSelect(int sel)
{
switch(sel)
{
case 0:
vlfGuiCancelBottomDialog();
vlfGuiCancelCentralMenu();
SubMenu(0);
return VLF_EV_RET_NOTHING;
break;
case 1:
vlfGuiCancelBottomDialog();
vlfGuiCancelCentralMenu();
SubMenu(0);
return VLF_EV_RET_NOTHING;
break;
}
return VLF_EV_RET_REMOVE_OBJECTS | VLF_EV_RET_REMOVE_HANDLERS;
}
void MainMenu(int sel)
{
char *items[] =
{
"Mizar",
"Mizar2"
};
vlfGuiCentralMenu(2, items, sel, OnMainMenuSelect, 0, 0);
vlfGuiBottomDialog(-1, VLF_DI_ENTER, 1, 0, VLF_DEFAULT, NULL);
}
int app_main(int argc, char *argv[]){
vlfGuiSystemSetup(1, 1, 1);
SetupCallback();
MainMenu(0);
while(1)
{
vlfGuiDrawFrame();
}
return 0;
}
|
|
|
|
![]() |
| Tags |
| problem , vlf |
| Thread Tools | |
|
|