The DOS version of the game Lost Eden has a giant GRAF called EDEN.DAT file. - K: r3 a9 K) Q6 Z( ~2 G0 J
2 c) ~( u# l7 G+ q4 {7 I* p( K, oFormat Specifications ! g) q+ q$ G/ }
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:
8 l* k6 O3 W4 A# E) }$ [9 M J$ j. y; j0 \- j
bytes 0-11 filename: typically 8.3 DOS filenames, padded with zeroes( h& v* i0 [- h& j; j
bytes 12-15 unknown
1 m4 @, D" m/ \/ t; ?# r' R bytes 16-19 file size* W; T: k( ?# p% R) d" J( W, _
bytes 20-23 absolute offset of file within GRAF
7 I- h$ K% R( o0 R9 w) Z& m* O" ^ byte 24 unknown
: f0 [% _" h8 R6 A6 YWorking 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.
4 b* ~" G/ S2 `7 J) B( c |