#quickbms script
#yulgang2 .mpki
#from chrrox
#fix iaw
open FDDE mpki 1
set arcnum 0
goto 0x0c 1
get files long 1
goto 0x20001c 1
for i = 0 < files
get offset long 1
get zsize long 1
get null3 long 1
get size long 1
get arcnum long 1
# print "%arcnum%"
get null1 long 1
get null2 long 1
get name string 1
Padding 4 1
get null long 1
set ofile string "ko-kr"
if name & ofile
set NAME1 string "ko-KR_"
set MYEXT string arcnum
string NAME1 += MYEXT
string NAME1 += .mpk
open FDSE NAME1 0
else
set NAME1 string "Common_"
set MYEXT string arcnum
string NAME1 += MYEXT
string NAME1 += .mpk
open FDSE NAME1 0
endif
if zsize == size
log name offset zsize
else
clog name offset zsize size
endif
next i
Open FOLDER NAME [FILENUM] [EXISTS]
It opens a file for reading, practically it assigns a file number/id
to an existent file that you want to use
arguments:
FOLDER FDDE, means that you want to open the file in the same
location of the input one which has the extension
provided with NAME