source: oup/releases/0.24a/src/Unit3_data.pas@ 16

Last change on this file since 16 was 8, checked in by alloc, 18 years ago

Uploaded old revs and structdefs.

File size: 2.4 KB
RevLine 
[8]1UNIT Unit3_data;
2INTERFACE
3USES Classes;
4
5CONST
6 version:String='v0.24a';
7 dbversion:String='0.2';
8 CrLf:String[2]=#13+#10;
9
10TYPE
11 Tdata=Array OF Byte;
12 Theader=PACKED RECORD
13 Ident:Array[0..$13] OF Byte;
14 Files:LongWord;
15 NamedFiles:LongWord;
16 Extensions:LongWord;
17 DataAddr:LongWord;
18 DataSize:LongWord;
19 NamesAddr:LongWord;
20 NamesSize:LongWord;
21 Ident2:Array[0..$F] OF Byte;
22 END;
23 Tfilesmap=Array OF PACKED RECORD
24 Extension:Array[0..$3] OF Char;
25 DataAddr:LongWord;
26 NameAddr:LongWord;
27 FileSize:LongWord;
28 FileType:LongWord;
29 END;
30 TFileInfo=PACKED RECORD
31 ID:LongWord;
32 FileName:String;
33 Extension:String[4];
34 Name:String;
35 Size:LongWord;
36 FileType:LongWord;
37 DatAddr:LongWord;
38 opened:Boolean;
39 END;
40 Tfiles=Array OF TFileInfo;
41
42 Tnamedfilesmap=Array OF PACKED RECORD
43 FileNumber:LongWord;
44 blubb:LongWord;
45 END;
46 Textensionsmap=Array OF PACKED RECORD
47 Ident:Array[0..$7] OF Byte;
48 Extension:Array[0..$3] OF Char;
49 ExtCount:LongWord;
50 END;
51
52 TAppSettings=RECORD
53 DatPath:String[250];
54 ExtractPath:String[250];
55 END;
56
57 TExportHandlers=RECORD
58 Ext:String[4];
59 needed:Boolean;
60 Handler:Function(fileid:LongWord; filename:String; convert:Boolean):Integer;
61 END;
62
63 TStringList=Array OF String;
64 TExtList=Array OF RECORD
65 Ext:String;
66 count:LongWord;
67 END;
68
69 TRawInfo=RECORD
70 src_id:LongWord;
71 src_offset:LongWord;
72 raw_addr:LongWord;
73 raw_size:LongWord;
74 END;
75 TRawList=Array OF TRawInfo;
76
77VAR
78 opened_state:Byte=0;
79 dat_filename:String='';
80 raw_filename:String='';
81 dat_header:Theader;
82 dat_filesmap:Tfilesmap;
83 dat_files:Tfiles;
84 dat_namedfilesmap:Tnamedfilesmap;
85 dat_extensionsmap:Textensionsmap;
86 AppSettings:TAppSettings;
87 AppSettingsFile:File OF TAppSettings;
88
89 database_level:LongWord;
90 database_ident:Array[0..$13] OF Byte;
91
92CONST
93 header_ident1:Array[0..$13] OF Byte=
94 ($1F,$27,$DC,$33,$DF,$BC,$03,$00,$31,$33,$52,$56,$40,$00,$14,$00,$10,$00,$08,$00);
95 header_ident2:Array[0..$F] OF Byte=
96 ($99,$CF,$40,$00,$90,$4F,$63,$00,$F4,$55,$5F,$00,$90,$4F,$63,$00);
97
98 export_noerror:Integer=0;
99 export_nohandler:Integer=1;
100 export_handlererror:Integer=2;
101 export_error:Integer=3;
102
103 opened_nothing:Byte=0;
104 opened_dat:Byte=1;
105 opened_db:Byte=2;
106
107IMPLEMENTATION
108
109END.
110
Note: See TracBrowser for help on using the repository browser.