Ignore:
Timestamp:
Jan 14, 2007, 9:19:08 PM (18 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Helper_LevelDB.pas

    r85 r86  
    7979  levelid:  LongWord;
    8080  timeformat: TFormatSettings;
     81
     82  conIndex: Integer;
     83  connection: TOniData;
    8184const
    8285  steps: Byte = 3;
     
    105108  timeformat.TimeSeparator := ':';
    106109
    107   if not CreateDataConnection(Source, ODB_ADB) then
     110  if CreateDataConnection(Source, ODB_ADB) = nil then
    108111  begin
    109112    ShowMessage('Could not connect to .oldb-file');
     
    208211                ((Data[$88] and $01) > 0) then
    209212              begin
    210                 OniImage.LoadFromTXMP(i);
     213                OniImage.LoadFromTXMP(Connection, i);
    211214                OniImage.GetMipMappedImage(rawdata);
    212215                rawlist[j].raw_size := OniImage.GetImageDataSize(True);
     
    310313  converting := False;
    311314
    312   CloseDataConnection;
     315  CloseDataConnection(DataConnections[conIndex]);
    313316end;
    314317
     
    345348  fileinfo: TFileInfo;
    346349  timeformat: TFormatSettings;
     350
     351  conIndex: Integer;
    347352const
    348353  steps: Byte = 4;
     
    362367
    363368begin
    364   if not CreateDataConnection(Source, ODB_Dat) then
     369  if CreateDataConnection(Source, ODB_Dat) = nil then
    365370  begin
    366371    ShowMessage('Could not connect to .dat-file');
     
    564569  database.Free;
    565570
    566   CloseDataConnection;
     571  CloseDataConnection(DataConnections[conIndex]);
    567572end;
    568573
Note: See TracChangeset for help on using the changeset viewer.