Code: Select all
idstring "SKDB"
get VERSION long
get HEADER_SIZE long
get STRINGS long
get DUMMY long
get TEXT_SIZE long
get DUMMY long
set TOC_SIZE long STRINGS
math TOC_SIZE *= 8
math TOC_SIZE += HEADER_SIZE
for i = 0 < STRINGS
get NAME_ID long
string NAME_ID p= "0x%08x" NAME_ID
string NAME_ID += ".txt"
get OFFSET long
math OFFSET *= 2
math OFFSET += TOC_SIZE
savepos POS
goto OFFSET
FindLoc SIZE STRING "\x00\x00\x00"
math SIZE -= OFFSET
math SIZE += 1
goto POS
log NAME_ID OFFSET SIZE
next i
but thats not very comfortable way and i need to save each string to another file, cause using memory files will loose string ID. So here we have another problem - how to save ID (long) to memory file like a text? If it's not clear here is an example of what i need.
it must be a text file with lines like this
Code: Select all
ID1=TEXT1
ID2=TEXT2
...
So can you add string saving or string asize (to get sizes an log it like normal file) and converting hex number to string on memory file, aluigi?
Here is a .strdb file
https://mega.nz/#!Uk4C0Dab!zcjFMta5WZ8h ... 5CgrpRXyZs