QUOTE (Xbox-Savage @ Apr 21 2004, 12:57 PM) |
and where do i put that code , you didnt say where ,right under function OnADown() or under some code under it? , replace everything under it with it? |
is it really that hard to guess??
you put
CODE |
else if (nCurMainMenuItem == 4) { gamelaunch = true; launchXbe = "default.xbe"; launchPath = "\\Device\\Harddisk0\\Partition6\\XBMC"; theLaunchGameLevel.GoTo(); }
|
in the function "function OnADown()" after all of the other "else if" statements.
it's not too hard to figure out what is going on in this function... it determines what the current menu item (nCurMainMenuItem) is. When it's 0 it will open the memory menu, if it's 1 it will open the music menu, if it's 2 it will open the hard drive menu, etc...
this tells it what to do when menu 4 is selected.
here's what it should look like:
CODE |
if (nCurMainMenuItem == 0) { theGamesMenuIn.Play(); GoToMusicPlayWithSubs(); } else if (nCurMainMenuItem == 1) { theGamesMenuIn.Play(); GoToMemory(); } else if (nCurMainMenuItem == 2) { theMusicMenuIn.Play(); GoToMusic(); } else if (nCurMainMenuItem == 3) { theSettingsMenuIn.Play(); GoToSettings(); } else if (nCurMainMenuItem == 4) { gamelaunch = true; launchXbe = "default.xbe"; launchPath = "\\Device\\Harddisk0\\Partition6\\XBMC"; theLaunchGameLevel.GoTo(); } |
or you could do what i did and make it look like this:
CODE |
if (nCurMainMenuItem == 0) { theGamesMenuIn.Play(); GoToMusicPlayWithSubs(); } else if (nCurMainMenuItem == 1) { theGamesMenuIn.Play(); GoToMemory(); } else if (nCurMainMenuItem == 2) { theMusicMenuIn.Play(); GoToMusic(); } else if (nCurMainMenuItem == 3) { theSettingsMenuIn.Play(); GoToSettings(); } else if (nCurMainMenuItem == 4) { QuickLaunch("Menu5"); } |
then open up config.xbx and add the following line anywhere you want (just as long as it is it's own line and you don't change anything before the '=' sign)
CODE |
Quick Launch Menu5=F:\\Apps\\XBMC\\default.xbe |
you can then set that to whatever you want menu 5 to launch to.