Page 1 of 1

Making memory file as "file 0"

Posted: Sun Jul 29, 2012 11:05 pm
by finale00

Code: Select all


# do stuff with the file and put it in memory file
filexor "stuff"
get size asize
log MEMORY_FILE 0 size
filexor ""

# now we actually read it

get ... MEMORY_FILE
get ... MEMORY_FILE

goto .... MEMORY_FILE

...
It gets kind of redundant, especially when I'm loading everything into memory first. Is there a way to make it so that I can treat file number 0 as MEMORY_FILE?

Re: Making memory file as "file 0"

Posted: Wed Aug 01, 2012 8:49 am
by aluigi
and why you use a memory_file?

filexor "stuff"
get DUMMY long
getdstring DUMMY 0x10
...

you don't need a memory_file

Re: Making memory file as "file 0"

Posted: Wed Aug 01, 2012 8:23 pm
by finale00
Oh.

LOL now that I think about it the memory file is kind of pointless.