Changeset 86 for oup/current/Helper_LevelDB.pas
- Timestamp:
- Jan 14, 2007, 9:19:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Helper_LevelDB.pas
r85 r86 79 79 levelid: LongWord; 80 80 timeformat: TFormatSettings; 81 82 conIndex: Integer; 83 connection: TOniData; 81 84 const 82 85 steps: Byte = 3; … … 105 108 timeformat.TimeSeparator := ':'; 106 109 107 if not CreateDataConnection(Source, ODB_ADB)then110 if CreateDataConnection(Source, ODB_ADB) = nil then 108 111 begin 109 112 ShowMessage('Could not connect to .oldb-file'); … … 208 211 ((Data[$88] and $01) > 0) then 209 212 begin 210 OniImage.LoadFromTXMP( i);213 OniImage.LoadFromTXMP(Connection, i); 211 214 OniImage.GetMipMappedImage(rawdata); 212 215 rawlist[j].raw_size := OniImage.GetImageDataSize(True); … … 310 313 converting := False; 311 314 312 CloseDataConnection ;315 CloseDataConnection(DataConnections[conIndex]); 313 316 end; 314 317 … … 345 348 fileinfo: TFileInfo; 346 349 timeformat: TFormatSettings; 350 351 conIndex: Integer; 347 352 const 348 353 steps: Byte = 4; … … 362 367 363 368 begin 364 if not CreateDataConnection(Source, ODB_Dat)then369 if CreateDataConnection(Source, ODB_Dat) = nil then 365 370 begin 366 371 ShowMessage('Could not connect to .dat-file'); … … 564 569 database.Free; 565 570 566 CloseDataConnection ;571 CloseDataConnection(DataConnections[conIndex]); 567 572 end; 568 573
Note:
See TracChangeset
for help on using the changeset viewer.