source: oup/releases/0.22a/Unit3_data.pas@ 368

Last change on this file since 368 was 22, checked in by alloc, 18 years ago
File size: 2.2 KB
Line 
1UNIT Unit3_data;
2INTERFACE
3USES Classes;
4
5CONST
6 version:String='v0.22a';
7 dbversion:String='0.1';
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
69VAR
70 opened_state:Byte=0;
71 dat_filename:String='';
72 raw_filename:String='';
73 dat_header:Theader;
74 dat_filesmap:Tfilesmap;
75 dat_files:Tfiles;
76 dat_namedfilesmap:Tnamedfilesmap;
77 dat_extensionsmap:Textensionsmap;
78 AppSettings:TAppSettings;
79 AppSettingsFile:File OF TAppSettings;
80
81 database_level:LongWord;
82 database_ident:Array[0..$13] OF Byte;
83
84CONST
85 header_ident1:Array[0..$13] OF Byte=
86 ($1F,$27,$DC,$33,$DF,$BC,$03,$00,$31,$33,$52,$56,$40,$00,$14,$00,$10,$00,$08,$00);
87 header_ident2:Array[0..$F] OF Byte=
88 ($99,$CF,$40,$00,$90,$4F,$63,$00,$F4,$55,$5F,$00,$90,$4F,$63,$00);
89
90 export_noerror:Integer=0;
91 export_nohandler:Integer=1;
92 export_handlererror:Integer=2;
93 export_error:Integer=3;
94
95 opened_nothing:Byte=0;
96 opened_dat:Byte=1;
97 opened_db:Byte=2;
98
99IMPLEMENTATION
100
101END.
102
Note: See TracBrowser for help on using the repository browser.