Changeset 215 for oup/current/FileClasses/_FileTypes.pas
- Timestamp:
- Jun 12, 2007, 10:31:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/FileClasses/_FileTypes.pas
r214 r215 27 27 FOpened: Boolean; 28 28 29 procedure InitDatLinks; virtual; abstract;30 procedure InitRawList; virtual; abstract;29 procedure InitDatLinks; 30 procedure InitRawList; 31 31 32 32 function GetDatLinkByOffset(Offset: Integer): TDatLink; … … 101 101 FFileStream := TMemoryStream.Create; 102 102 ConManager.Connection[ConnectionID].LoadDatFile(FileID, TStream(FFileStream)); 103 end; 104 105 InitDatLinks(); 106 InitRawList(); 107 FDataFields := nil; 108 FEditor := nil; 109 110 if not (Self is TFile_Empty) then 103 104 InitDatLinks(); 105 InitRawList(); 106 FDataFields := nil; 107 FEditor := nil; 108 111 109 FFileStream.Free; 112 FFileStream := nil; 110 FFileStream := nil; 111 end 112 else 113 begin 114 SetLength(FDatLinks, 0); 115 SetLength(FRawParts, 0); 116 FEditor := nil; 117 end; 113 118 end; 114 119 … … 234 239 end; 235 240 241 procedure TFile.InitDatLinks; 242 begin 243 FDatLinks := ConManager.Connection[FConnectionID].GetDatLinks(FFileID); 244 end; 245 236 246 procedure TFile.InitEditor; 237 247 begin 238 248 Exit; 249 end; 250 251 procedure TFile.InitRawList; 252 begin 253 FRawParts := ConManager.Connection[FConnectionID].GetRawList(FFileID); 239 254 end; 240 255
Note:
See TracChangeset
for help on using the changeset viewer.