QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Homebrew and Hacks Discussion
The above video goes away if you are a member and logged in, so log in now!

Problem with VLF 1.0

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 ...

Reply
 
LinkBack Thread Tools
Old 10-09-2009, 11:16 AM   #1
 
Join Date: Oct 2009
Real First Name: Mizar
Location: Spain
Just Played: Gran Turismo
Posts: 1
Trader Feedback: 0
Default Problem with VLF 1.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;
}
Thank youhank you very much and greetings
Mizar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
problem , vlf

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 12:51 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us