xboxscene.org forums

Author Topic: How Does Autoadditem Work?  (Read 47 times)

rjm2k

  • Archived User
  • Sr. Member
  • *
  • Posts: 253
How Does Autoadditem Work?
« on: November 20, 2002, 02:46:00 PM »

QUOTE (J.P. Patches @ Nov 20 2002, 06:42 PM)
So, I know the basics...  It looks in every directory for a default.xbe and then reads the application name out of it, but how does it do this?  

I can do the searching for .xbe files just fine, but how do I read the Title Name?  I can't find anything in the dox...

JP

                                    It's in the header structure of the file.
Logged

J.P. Patches

  • Archived User
  • Jr. Member
  • *
  • Posts: 94
How Does Autoadditem Work?
« Reply #1 on: November 21, 2002, 02:33:00 PM »

QUOTE (rjm2k @ Nov 20 2002, 01:46 PM)

It's in the header structure of the file.


This is true.  The problem I was having was that it's not always in the same place.  

So, here's the quick way to find the string...

First, look at offset 0x0110 for the xbox header size.  Then, use that plus 0x0c bytes as your next offset and you've got your Title.  It's a Unicode string sitting there.

Thanks...  And thanks to Hartec for his dbxbe utility.
Logged

destruire

  • Archived User
  • Newbie
  • *
  • Posts: 6
How Does Autoadditem Work?
« Reply #2 on: November 25, 2002, 07:58:00 AM »

If you open your XBE with HexEdit for example, titles are ALWAYS at address: 0170,0180, 01A0. As mentioned above, its always there in clear text.
You can edit it the way you like but the file must keep the same size.
As far as I know, a "00" character must seperate every characters and spaces are "20".
I've modified a few titles without any problems.
Logged

CyberPunk

  • Archived User
  • Jr. Member
  • *
  • Posts: 70
How Does Autoadditem Work?
« Reply #3 on: November 26, 2002, 01:32:00 AM »

It does not look at every folder. Only the first folders in the dir. I.E. AutoAddItem "e:\games\" would look for .xbe files in "e:\games\xbcopy000" not "e:\games\xbcopy000\xdemos" and take the title from the .xbe file to display it.
Logged