source: oup/releases/0.29a3/Unit3_data.pas@ 340

Last change on this file since 340 was 31, checked in by alloc, 18 years ago
File size: 2.6 KB
Line 
1UNIT Unit3_data;
2INTERFACE
3USES Classes;
4
5CONST
6 version:String='v0.29a';
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 FileNameHex:String;
34 Extension:String[4];
35 Name:String;
36 Size:LongWord;
37 FileType:LongWord;
38 DatAddr:LongWord;
39 opened:Boolean;
40 END;
41 Tfiles=Array OF TFileInfo;
42
43 Tnamedfilesmap=Array OF PACKED RECORD
44 FileNumber:LongWord;
45 blubb:LongWord;
46 END;
47 Textensionsmap=Array OF PACKED RECORD
48 Ident:Array[0..$7] OF Byte;
49 Extension:Array[0..$3] OF Char;
50 ExtCount:LongWord;
51 END;
52
53 TAppSettings=RECORD
54 DatPath:String[250];
55 ExtractPath:String[250];
56 FilenumbersAsHex:Boolean;
57 END;
58
59 TExportHandlers=RECORD
60 Ext:String[4];
61 needed:Boolean;
62 Handler:Function(fileid:LongWord; filename:String; convert:Boolean):Integer;
63 END;
64
65 TStringList=Array OF String;
66 TExtList=Array OF RECORD
67 Ext:String;
68 count:LongWord;
69 END;
70
71 TRawInfo=RECORD
72 src_id:LongWord;
73 src_offset:LongWord;
74 raw_addr:LongWord;
75 raw_size:LongWord;
76 loc_sep:Boolean;
77 END;
78 TRawList=Array OF TRawInfo;
79
80VAR
81 opened_state:Byte=0;
82 dat_filename:String='';
83 raw_filename:String='';
84 dat_os_mac:Boolean=False;
85 dat_header:Theader;
86 dat_filesmap:Tfilesmap;
87 dat_files:Tfiles;
88 dat_namedfilesmap:Tnamedfilesmap;
89 dat_extensionsmap:Textensionsmap;
90 AppSettings:TAppSettings;
91 AppSettingsFile:File OF TAppSettings;
92
93 database_level:LongWord;
94 database_ident:Array[0..$13] OF Byte;
95
96CONST
97 header_ident1_pc:Array[0..$13] OF Byte=
98 ($1F,$27,$DC,$33,$DF,$BC,$03,$00,$31,$33,$52,$56,$40,$00,$14,$00,$10,$00,$08,$00);
99 header_ident1_mac:Array[0..$13] OF Byte=
100 ($61,$30,$C1,$23,$DF,$BC,$03,$00,$31,$33,$52,$56,$40,$00,$14,$00,$10,$00,$08,$00);
101 header_ident2:Array[0..$F] OF Byte=
102 ($99,$CF,$40,$00,$90,$4F,$63,$00,$F4,$55,$5F,$00,$90,$4F,$63,$00);
103
104 export_noerror:Integer=0;
105 export_nohandler:Integer=1;
106 export_handlererror:Integer=2;
107 export_error:Integer=3;
108
109 opened_nothing:Byte=0;
110 opened_dat:Byte=1;
111 opened_db:Byte=2;
112
113IMPLEMENTATION
114
115END.
116
Note: See TracBrowser for help on using the repository browser.