xboxscene.org forums

Author Topic: Start Already Insrted Dvd, Game Or Whatever?  (Read 331 times)

Dazza

  • Archived User
  • Newbie
  • *
  • Posts: 5
Start Already Insrted Dvd, Game Or Whatever?
« on: January 08, 2005, 02:49:00 PM »

After reading the general discussion section people are trying to get a DVD or game to autolaunch after they have said not to when they inserted it.

Simple solution I use is based on the reset xbox code being attached to the b button from the main menu.

Open default.xip\default.xap and search for

CODE
control DEF theMainMenuJoy Joystick


Then immediately BEFORE the line that reads

CODE
function OnADown()


Now I attached it to the X button so I inserted

CODE
       function OnXDown()
        {
            PlaySoundB();
            AutoLaunch();
        }


This should work assuming that you don''t have anything else running from the X button. It won't ask any questions it just Launches the DVD.
Logged

mrmodem

  • Archived User
  • Newbie
  • *
  • Posts: 15
Start Already Insrted Dvd, Game Or Whatever?
« Reply #1 on: February 08, 2005, 12:18:00 AM »

thats good stuff Dazza..... cool
Logged

mrmodem

  • Archived User
  • Newbie
  • *
  • Posts: 15
Start Already Insrted Dvd, Game Or Whatever?
« Reply #2 on: February 18, 2005, 10:26:00 PM »

another way I launch my already inserted games / dvd's is i put a tab in the main menu
called Launch DVD  / Game..... linked to the autolaunch function :)

---mrmodem---
Logged

SpiderWeb

  • Archived User
  • Newbie
  • *
  • Posts: 20
Start Already Insrted Dvd, Game Or Whatever?
« Reply #3 on: February 23, 2005, 01:47:00 AM »

mrmodem can you give me that Code plz..

i would like 2 have a DVD'S tab in My Panel Menu   =)_

This post has been edited by SpiderWeb: Feb 23 2005, 09:48 AM
Logged

blitzburrgh

  • Archived User
  • Newbie
  • *
  • Posts: 4
Start Already Insrted Dvd, Game Or Whatever?
« Reply #4 on: March 05, 2005, 08:08:00 PM »

I love the code, but hated the "accidential" press of the X button.

So I modified Dazza's code a tad..

His last part where he says..
CODE
function OnXDown()
       {
           PlaySoundB();
           AutoLaunch();
       }


I used..
CODE
function OnXDown()
       {
           PlaySoundB();
           AutoLaunchCheck();
       }


That way if you accidentially press the x, (like me, or actually the kids), it gives you the prompt again (like it does if you have your ini set to "ask" on inserted media).  Doubt this qualifies me as a coding guru, but I think it's handy  :P
Logged