a not so simple file format, anyway job done :)
Code:
# Driving Simulator 2009
# script for QuickBMS http://aluigi.org/papers.htm#quickbms
idstring "LiArFi\n"
get DUMMY long
get DUMMY byte
get INFO_OFF long
goto INFO_OFF
set PATH string ""
callfunction EXTRACT
startfunction EXTRACT
get PREV_OFF long
get NEXT_OFF long
get ENTRIES long
set ENTRIES_MAIN long ENTRIES
for i = 0 < ENTRIES_MAIN
get NAMESZ byte
if PREV_OFF >= INFO_OFF
get DUMMY byte
endif
math NAMESZ += 1
getdstring NAME NAMESZ
if PREV_OFF >= INFO_OFF
set PATH string NAME
get TMP byte
math TMP += 1
getdstring TMP TMP
string NAME += /
string NAME += TMP
else
set TMP string NAME
set NAME string PATH
string NAME += /
string NAME += TMP
endif
get PREV_OFF long
if PREV_OFF < 0x20
get NEXT_OFF long
get ENTRIES long
if NEXT_OFF != 0
savepos TMP
goto NEXT_OFF
callfunction EXTRACT
goto TMP
endif
else
get OFFSET long
get DUMMY long
get SIZE long
get DUMMY long
get CRC long
get DUMMY long
log NAME OFFSET SIZE
endif
next i
endfunction