31 |
|
procedure LoadDatFilePart(FileID, Offset, Size: Integer; var Target: TStream); overload; override; |
32 |
|
procedure UpdateDatFilePart(FileID, Offset, Size: Integer; Src: TStream); overload; override; |
33 |
|
|
34 |
+ |
function GetDatLinks(FileID: Integer): TDatLinkList; override; |
35 |
|
function GetRawList(FileID: Integer): TRawDataList; override; |
36 |
|
function GetRawInfo(FileID, DatOffset: Integer): TRawDataInfo; override; |
37 |
|
|
56 |
|
|
57 |
|
|
58 |
|
constructor TAccess_OUP_ADB.Create(DBFilename: String; ConnectionID: Integer; var Msg: TStatusMessages); |
58 |
– |
var |
59 |
– |
i: Integer; |
59 |
|
begin |
60 |
|
Msg := SM_UnknownError; |
61 |
|
if not FileExists(DBFilename) then |
140 |
|
Fdat_files[i].Name := FQuery.FieldByName('name').AsString; |
141 |
|
Fdat_files[i].Extension := FQuery.FieldByName('extension').AsString; |
142 |
|
Fdat_files[i].Size := FQuery.FieldByName('size').AsInteger; |
143 |
< |
Fdat_files[i].FileType := HexToLong(FQuery.FieldByName('contenttype').AsString); |
143 |
> |
Fdat_files[i].FileType := StrToInt('$'+FQuery.FieldByName('contenttype').AsString); |
144 |
|
Fdat_files[i].DatAddr := 0; |
145 |
|
Inc(i); |
146 |
|
FQuery.Next; |
292 |
|
end; |
293 |
|
end; |
294 |
|
end; |
295 |
< |
Result := TStringList.Create; |
295 |
> |
if not Assigned(Result) then |
296 |
> |
Result := TStringList.Create; |
297 |
|
if list.Count > 0 then |
298 |
|
begin |
299 |
|
fields := TStringList.Create; |
327 |
|
var |
328 |
|
i: Integer; |
329 |
|
begin |
330 |
< |
Result := TStringList.Create; |
330 |
> |
if not Assigned(Result) then |
331 |
> |
Result := TStringList.Create; |
332 |
> |
if Result is TStringList then |
333 |
> |
TStringList(Result).Sorted := True; |
334 |
|
for i := 0 to Length(Fdat_extensionsmap) - 1 do |
335 |
|
begin |
336 |
|
with Fdat_extensionsmap[i] do |