Changeset 210
- Timestamp:
- Jun 5, 2007, 12:12:31 AM (18 years ago)
- Location:
- oup/current
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/FileClasses/TXMP.pas
r209 r210 111 111 SetLength(FDatLinks, 2); 112 112 FDatLinks[0].SrcOffset := $94; 113 FDatLinks[0].DestID := GetDatLinkValue(FFile , $94);113 FDatLinks[0].DestID := GetDatLinkValue(FFileStream, $94); 114 114 FDatLinks[0].PosDestExts := '*'; 115 115 FDatLinks[1].SrcOffset := $98; 116 FDatLinks[1].DestID := GetDatLinkValue(FFile , $98);116 FDatLinks[1].DestID := GetDatLinkValue(FFileStream, $98); 117 117 FDatLinks[1].PosDestExts := 'TXMP'; 118 118 end; -
oup/current/FileClasses/_FileTypes.pas
r209 r210 13 13 FFileID: Integer; 14 14 FFileName: String; 15 FFile: TMemoryStream; 15 FFileExt: String; 16 FFileSize: Integer; 17 FFileStream: TMemoryStream; 16 18 17 19 FDatLinks: TDatLinkList; … … 33 35 procedure Free; 34 36 35 property FileStream: TMemoryStream read FFile ;37 property FileStream: TMemoryStream read FFileStream; 36 38 property FileID: Integer read FFileID; 37 39 property FileName: String read FFileName; 40 property FileExt: String read FFileExt; 41 property FileSize: Integer read FFileSize; 38 42 property ConnectionID: Integer read FConnectionID; 39 43 … … 66 70 var 67 71 i: Integer; 72 fileinfo: TFileInfo; 68 73 begin 69 74 FConnectionID := ConnectionID; 70 75 FFileID := FileID; 71 FFileName := ConManager.Connection[ConnectionID].GetFileInfo(FileID).Name; 76 fileinfo := ConManager.Connection[ConnectionID].GetFileInfo(FileID); 77 FFileName := fileinfo.Name; 78 FFileExt := fileinfo.Extension; 79 FFileSize := fileinfo.Size; 72 80 73 FFile := TMemoryStream.Create;74 ConManager.Connection[ConnectionID].LoadDatFile(FileID, TStream(FFile ));81 FFileStream := TMemoryStream.Create; 82 ConManager.Connection[ConnectionID].LoadDatFile(FileID, TStream(FFileStream)); 75 83 76 84 InitDatLinks(); … … 78 86 InitRawList(); 79 87 80 FFile .Free;81 FFile := nil;88 FFileStream.Free; 89 FFileStream := nil; 82 90 end; 83 91
Note:
See TracChangeset
for help on using the changeset viewer.