Append [DIRECTION] 1

Doubts, help and support about QuickBMS and other game research tools
n97t7f7b57f
Posts: 27
Joined: Tue Apr 21, 2015 2:15 pm

Append [DIRECTION] 1

Post by n97t7f7b57f »

how

Code: Select all

append 1
works?

i need to append file 1 to file 0 at desired offset:

Code: Select all

log MEMORY_FILE 0 0x100000 0
Open FDSE ? 1 // less then 0x100000
get size asize 1
append 1
goto 0x4000 // desired offset in MEMORY_FILE to append
log MEMORY_FILE 0 size 1
append

but file 1 appended at offset 0x00
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Append [DIRECTION] 1

Post by aluigi »

I guess you mean something like the following:

Code: Select all

open FDSE ? 1

get SIZE asize
if SIZE > 0x100000
    math SIZE = 0x100000
endif
log MEMORY_FILE 0 SIZE
append 1
goto 0x4000 MEMORY_FILE
get SIZE asize 1
log MEMORY_FILE 0 SIZE 1
append

get SIZE asize MEMORY_FILE
log "output.dat" 0 SIZE MEMORY_FILE
n97t7f7b57f
Posts: 27
Joined: Tue Apr 21, 2015 2:15 pm

Re: Append [DIRECTION] 1

Post by n97t7f7b57f »

aluigi wrote:I guess you mean something like the following:

goto 0x4000 MEMORY_FILE
that's it! thank you aluigi