xboxscene.org forums

Author Topic: Hacking The Thc Dasd (code Only)  (Read 51 times)

Cody Smile

  • Archived User
  • Jr. Member
  • *
  • Posts: 55
Hacking The Thc Dasd (code Only)
« on: April 30, 2004, 06:25:00 PM »

CODE

var nFileMenuItemCount;

(should be 3 or 4 lines in file)
4.) under that line paste:
CODE

DEF theConfig Config

5.) find:

CODE
function InitMemoryMenuItems()


6.) replace that entire function with:

CODE
function InitMemoryMenuItems()
{
  var c = theFilesMenu.children[0].children[0];
  var nTitle = c.theSavedGameGrid.curTitle;
  var nSavedGame = c.theSavedGameGrid.curGridItem;

  if (nTitle < 0)
  {
      // we have the device menu
      if (theMemoryMonitor.curDevUnit == 8)
      {
          // TODO: Hard drive menu
          nFileMenuItemCount = 0;
      }
      else
      {
          c.MenuItemText1.text = theTranslator.Translate("PERSONALIZE");
          c.MenuItemText2.text = theTranslator.Translate("FORMAT");
          nFileMenuItemCount = 2;
      }
  }
  else if (nSavedGame < 0)
  {
      // we have the title/soundtrack menu
      c.MenuItemText1.text = theTranslator.Translate("LOAD");
      c.MenuItemText2.text = theTranslator.Translate("DELETE");
      nFileMenuItemCount = 2;
  }
  else
  {
      // we have the saved-game/song menu
      if (c.theSavedGameGrid.CanCopy())
      {
          c.MenuItemText1.text = theTranslator.Translate("COPY");
          c.MenuItemText2.text = theTranslator.Translate("DELETE");
          nFileMenuItemCount = 2;
      }
      else
      {
          c.MenuItemText1.text = theTranslator.Translate("DELETE");
          nFileMenuItemCount = 1;
      }
  }
}

6.) find:
CODE

function DoMemoryItemMenuCommand()


7.) replace that entire function with:
CODE

function DoMemoryItemMenuCommand()
{
  var c = theFilesMenu.children[0].children[0];
  var nTitle = c.theSavedGameGrid.curTitle;
  var nSavedGame = c.theSavedGameGrid.curGridItem;

  if (nTitle < 0)
  {
      // we have the device menu
      if (theMemoryMonitor.curDevUnit == 8)
      {
          // TODO: Hard drive menu
      }
      else
      {
          if (nCurFileMenuItem == 0)
              ShowKeyboard(theTranslator.Translate("PERSONALIZE"), theMemoryMonitor.FormatDeviceName(theMemoryMonitor.curDevUnit), "theMemoryInline.children[0].FinishPersonalize()", "");
          else if (nCurFileMenuItem == 1)
              AskQuestion(theTranslator.Translate("Really format"), "theMemoryInline.children[0].FinishFormat()", "", 1);
      }
  }
  else if (nSavedGame < 0)
  {
      // we have the title/soundtrack collection menu
      if (nCurFileMenuItem == 1)
          StartDelete();
      else if (nCurFileMenuItem == 0)
   Startload();
  }
  else
  {
      // we have the saved-game/soundtrack menu
      if (c.theSavedGameGrid.CanCopy())
      {
          if (nCurFileMenuItem == 0)
              StartCopy();
          else if (nCurFileMenuItem == 1)
              StartDelete();
      }
      else
      {
          StartDelete();
      }
  }
}

function Startload()
{
  var c = theFilesMenu.children[0].children[0];
  var blah1 = c.theSavedGameGrid.curTitle;
  var strblah;
  var fish = false;
  var fish2 = false;
  strblah = c.theSavedGameGrid.GetTitleName(blah1);
 
  fish = theConfig.NtFileExists( "\\Device\\Harddisk0\\partition6\\Games\\" + strblah + "\\default.xbe" );//change to where your games are

  PlaySoundA();

  if (fish)
  {
launch("default.xbe", "\\Device\\Harddisk0\\Partition6\\Games\\" + strblah);//change to where your games are
  }

  else
  {
      fish2 = theConfig.NtFileExists( "\\Device\\Harddisk0\\partition6\\Apps\\" + strblah + "\\default.xbe" );//change to where your apps are

      if (fish2)
      {
       launch("default.xbe", "\\Device\\Harddisk0\\Partition6\\Apps\\" + strblah);//change to where your apps are
}

      else if (strblah =="Oddworld: Munch's Oddysee")//you can do this for games with wierd names
      {
   launch("default.xbe", "\\Device\\Harddisk0\\Partition6\\Games\\Oddworld");// change to where this game is
      }

      else if (strblah =="Px HDD Loader")//you can do this for apps with wierd names
      {
   launch("default.xbe", "\\Device\\Harddisk0\\Partition6\\Apps\\HDDLoader");//change to where your Application is
      }
  }

      TellUser(theTranslator.Translate("COULD NOT FIND GAME OR APPLICATION"), "");  
}

8.)find:
CODE

function OnEnumeratingTitlesEnd()

9.) replace that entire function with:
CODE

function OnEnumeratingTitlesEnd()
{
  var c = theFilesMenu.children[0].children[0];
  var cheese = false;
  cheese = theConfig.NtFileExists( "\\Device\\Harddisk0\\partition6\\Games\\cheese\\default.xbe" );
  CloseMessage();
  EnterMemoryFiles();
}

10.) save, rebuild, resign, and transfer to xbox

NOTE: This still requires you to either rename the folder that the game is in, or ad an "else if" statement to load a game(same goes for applications)
NOTE2: After doing this when you first select your memory device, the "Searching for game saves" box will appear for a couple more seconds than usual. This is because theConfig that I added uses this time to initialize itself.
and again thanks go to Dlux
Logged