# Xanadu Next (ARC/DIR format)
# Written by Ekey (h4x0r)
# 
# script for QuickBMS http://quickbms.aluigi.org

open FDDE "dir" 0
open FDDE "arc" 1

goto -4
get FILES long
goto 0

math OFFSET = 0
for i = 0 < FILES
   getdstring NAME 0x64
   get SIZE long
   get DUMMY long # 0 / 1 > compression flag?
   log NAME OFFSET SIZE 1
   math OFFSET += SIZE
next i
