The DOS version of the game Lost Eden has a giant GRAF called EDEN.DAT file. & a8 U8 U3 y" \
" x0 S. d t: o/ ]( nFormat Specifications / S# J$ m& ~1 L1 ~
The EDEN.DAT file begins with 2 bytes which might indicate the number of files contained in the GRAF. Following this number is a series of 25-byte records. Each record is laid out as follows:
1 [# m. p& S; ~7 \* q$ ?5 \
+ n5 ^, [9 ?" ~! c4 p3 Z* C- f bytes 0-11 filename: typically 8.3 DOS filenames, padded with zeroes' c% R/ C8 F8 Q+ c8 r$ n
bytes 12-15 unknown o! [8 z0 R$ G% f% v7 d0 V
bytes 16-19 file size
& \; e0 b" q# z' A6 l bytes 20-23 absolute offset of file within GRAF( v: f: Q) {% K" W6 _
byte 24 unknown
5 L9 Z$ w! `4 J1 x: V( h9 p. oWorking with the hypothesis that the first 2 bytes indicate the number of records, EDEN.DAT should have 2621 records. At 25 bytes each, the first 65525 bytes should contain record data. However, a large block of bytes at the end of the first 65525 bytes are 0. Thus, if following this strategy, be sure that the filename, size and offset record fields are non-NULL before fetching for the file.
* E4 s' L. b V |