xboxscene.org forums

Author Topic: Del *.*, Rmdir, Arrays And  (Read 133 times)

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Del *.*, Rmdir, Arrays And
« on: December 16, 2003, 03:03:00 PM »

CODE

SEARCHTYPE s_type
IF %s_type% == "dir" GOTO DIRFOUND
IF %s_type% == "file" GOTO SKIPFILE
QUIT


XML is better than INI in terms of structure.
More organized, you can say.  And u can make a hierarchy in it.  eg submenus inside submenus inside menus, without using braces and the like.

Scripts in menus are just like normal items

<Item>
<Media>C:\blah.wmv</Media>
<Thumbnail>C:\blah.jpg</Thumbnail>
and instead of a <Exe>C:\blah.jpg</Exe>, you have
<Action>Callscript C:\blah.xas</Action>
</Item>

Right now there's no drop-in functionality for actionscripts, but there's gonna be some soon.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Del *.*, Rmdir, Arrays And
« Reply #1 on: December 16, 2003, 03:19:00 PM »

CODE
SEARCHTYPE s_type
IF %s_type% == "dir" GOTO DIRFOUND
IF %s_type% == "file" GOTO FIILEFOUND
QUIT


This just tells it to check the search result type..
If it's a file, goes to whereever you tell it to.
And if it's a directory, goes wherever you tell it to.
But if it's neither, it means you are at the end of the search, so it quits.  Again, you can do anything there, if you don't want to quit.
Logged

SumDumGuy2

  • Archived User
  • Newbie
  • *
  • Posts: 6
Del *.*, Rmdir, Arrays And
« Reply #2 on: December 16, 2003, 03:31:00 PM »

Ok, Duh... makes perfect sense now... Thanks again...
Logged