source: oup/current/Global/TypeDefs.pas@ 114

Last change on this file since 114 was 113, checked in by alloc, 18 years ago
File size: 3.2 KB
Line 
1unit TypeDefs;
2interface
3
4uses
5 Graphics, SysUtils;
6
7type
8 ENotImplemented = class(Exception);
9
10 TDataBackend = (DB_ONI, DB_ADB);
11 TDataOS = (DOS_WIN, DOS_WINDEMO, DOS_MAC, DOS_MACBETA);
12
13 TChangeRights = set of (CR_EditDat, CR_EditRaw, CR_ResizeDat, CR_ResizeRaw, CR_AppendRaw);
14
15 TStatusMessages = (
16 SM_OK,
17 SM_AlreadyOpened,
18 SM_FileNotFound,
19 SM_UnknownExtension,
20 SM_IncompatibleFile,
21 SM_IncompatibleDBVersion,
22 SM_UnknownError
23 );
24
25 TDatOSIdent = array[0..3] of Byte;
26 TDatGlobalIdent = array[0..15] of Byte;
27
28 THeader = packed record
29 OSIdent: TDatOSIdent;
30 GlobalIdent:TDatGlobalIdent;
31 Files: Integer;
32 NamedFiles: Integer;
33 Extensions: Integer;
34 DataAddr: Integer;
35 DataSize: Integer;
36 NamesAddr: Integer;
37 NamesSize: Integer;
38 Ident2: array[0..$F] of Byte;
39 end;
40 TFilesMap = array of packed record
41 Extension: array[0..$3] of Char;
42 DataAddr: Integer;
43 NameAddr: Integer;
44 FileSize: Integer;
45 FileType: LongWord;
46 end;
47 TNamedFilesMap = array of packed record
48 FileNumber: Integer;
49 blubb: Integer;
50 end;
51
52 TTypeIdent = array[0..7] of Byte;
53 TFileType = record
54 Extension: String[4];
55 StructID: Integer;
56 Name: String;
57 IdentWin: TTypeIdent;
58 IdentMac: TTypeIdent;
59 end;
60
61 TExtensionsMap = array of packed record
62 Ident: TTypeIdent;
63 Extension: array[0..$3] of Char;
64 ExtCount: Integer;
65 end;
66
67 TFileInfo = packed record
68 ID: Integer;
69 Name: String;
70 Extension: String[4];
71 Size: Integer;
72 FileType: LongWord;
73 DatAddr: Integer;
74 end;
75 TFiles = array of TFileInfo;
76
77 TRawDataInfo = record
78 SrcID: Integer;
79 SrcOffset: Integer;
80 RawAddr: Integer;
81 RawSize: Integer;
82 LocSep: Boolean;
83 end;
84 TRawDataList = array of TRawDataInfo;
85
86 TSortType = (
87 ST_IDAsc,
88 ST_IDDesc,
89 ST_NameAsc,
90 ST_NameDesc,
91 ST_ExtAsc,
92 ST_ExtDesc,
93 ST_ExtNameAsc,
94 ST_ExtNameDesc
95 );
96
97 TExtensionFormat = (
98 EF_ExtOnly,
99 EF_ExtCount
100 );
101
102 TByteData = array of Byte;
103
104 TAppSettings = record
105 DatPath: String[250];
106 ExtractPath: String[250];
107 CharSet: TFontCharSet;
108 HideUnusedData: Boolean;
109 end;
110
111 TToolList = array of record
112 context: String;
113 name: String;
114 exts: String;
115 end;
116
117 TLinkByName = record
118 SrcOffset: Integer;
119 Destination: String;
120 end;
121 TLinkByID = record
122 SrcOffset: Integer;
123 Destination: Integer;
124 end;
125 TLinks = record
126 ByName: array of TLinkByName;
127 ByID: array of TLinkByID;
128 end;
129
130 TDatLink = record
131 SrcOffset: Integer;
132 DestID: Integer;
133 PosDestExts: String;
134 end;
135 TDatLinkList = array of TDatLink;
136
137{
138 TLevelInfo = record
139 Ident: array[0..$13] of Byte;
140 LevelNumber: Byte;
141 end;
142
143 TDatLinks = array of record
144 Src_Offset: Integer;
145 Target: Integer;
146 end;
147}
148
149const
150 CrLf: String[2] = #13#10;
151
152implementation
153
154end.
Note: See TracBrowser for help on using the repository browser.