ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Sep 26, 2018 12:44 pm

All times are UTC




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Sep 22, 2018 6:06 am 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 8
how can i connect func_getTYPE.bms to a script like this? is this possible?

Code:
idstring "TAFS"
get SECTOIN long
get FILE_VERSION long
get FILES long
get DIRACTORY_NAME long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
for i = 0 < FILES
    get CRC long
    get DUMMY long
    get SIZE long
    get OFFSET long
    math OFFSET -= 1040
    string NAME p "%08x" CRC
    log NAME OFFSET SIZE
next i


Attachments:
func_getTYPE.bms [14.25 KiB]
Downloaded 3 times
Top
   
PostPosted: Sat Sep 22, 2018 9:51 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8837
If you add a dot after %08x quickbms will automatically give a guessed extension during extraction.

If you want to use that function anyway, even if many extensions are not supported, then replace the current "string NAME p ..." with:
Code:
include "func_getTYPE.bms"
log MEMORY_FILE 0 SIZE
callfunction getTYPE 1
string NAME p "%08x%s" CRC EXT


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited