BMS Script by Fatduck, edited by Ekey and small fix by me aaahh joke
# Game: SW online (PC)
# website: http://sw.wanmei.com/download/index.shtml
# Package: PAK
# by Fatduck, edited by Ekey Sep 2014
# script for QuickBMS http://quickbms.aluigi.org
get ID long
get UKN long
getdstring VER 0x40
for i = 0
getdstring RES_NAME 0x40
get OFS_RES long
get USIZE long
get CSIZE long
get UKN long
get NULL longlong
if OFS_RES == 0
cleanexit
endif
if USIZE == CSIZE
log RES_NAME OFS_RES USIZE
else if CSIZE == 0
log RES_NAME OFS_RES USIZE
else
clog RES_NAME OFS_RES CSIZE USIZE
endif
next i