Page 1 of 1

Extract iex file (The Tuttles - Madcap Misadventures)?

Posted: Wed Feb 09, 2011 1:44 pm
by x5254725
The contents of this post was deleted because of possible forum rules violation.

Re: Extract iex file (The Tuttles - Madcap Misadventures)?

Posted: Thu Feb 17, 2011 3:12 am
by WRS
sorry to reply so late (missed this thread)

right approach with the signature thing :)
you can't have math doing more than one thing

Code: Select all

math START = 0
math SIZE = 0

for COUNT = 0

  math START += SIZE
  goto START

  findloc START string "\xff\xd8\xff\xe0"
  findloc END string "\xff\xd9"

  if START == ""
     # no signature found
    cleanexit
  endif

  if END == ""
     # no signature found
    cleanexit
  endif

  if END < START
    # bad size
    cleanexit
  endif

  math END += 2
  math SIZE = END
  math SIZE -= START

  set NAME string COUNT
  string NAME += ".jpeg"
   
  log NAME START SIZE

next COUNT
compare versions, and you should understand what i'm doing different :D