| 78 |
|
OniImage: TOniImage; |
| 79 |
|
levelid: LongWord; |
| 80 |
|
timeformat: TFormatSettings; |
| 81 |
+ |
|
| 82 |
+ |
conIndex: Integer; |
| 83 |
+ |
connection: TOniData; |
| 84 |
|
const |
| 85 |
|
steps: Byte = 3; |
| 86 |
|
|
| 107 |
|
timeformat.LongTimeFormat := 'hh:nn:ss'; |
| 108 |
|
timeformat.TimeSeparator := ':'; |
| 109 |
|
|
| 110 |
< |
if not CreateDataConnection(Source, ODB_ADB) then |
| 110 |
> |
if CreateDataConnection(Source, ODB_ADB) = nil then |
| 111 |
|
begin |
| 112 |
|
ShowMessage('Could not connect to .oldb-file'); |
| 113 |
|
Exit; |
| 210 |
|
if (UpperCase(fileinfo.Extension) = 'TXMP') and |
| 211 |
|
((Data[$88] and $01) > 0) then |
| 212 |
|
begin |
| 213 |
< |
OniImage.LoadFromTXMP(i); |
| 213 |
> |
OniImage.LoadFromTXMP(Connection, i); |
| 214 |
|
OniImage.GetMipMappedImage(rawdata); |
| 215 |
|
rawlist[j].raw_size := OniImage.GetImageDataSize(True); |
| 216 |
|
Data[$90] := $08; |
| 312 |
|
|
| 313 |
|
converting := False; |
| 314 |
|
|
| 315 |
< |
CloseDataConnection; |
| 315 |
> |
CloseDataConnection(DataConnections[conIndex]); |
| 316 |
|
end; |
| 317 |
|
|
| 318 |
|
|
| 347 |
|
extlist: TExtensionsMap; |
| 348 |
|
fileinfo: TFileInfo; |
| 349 |
|
timeformat: TFormatSettings; |
| 350 |
+ |
|
| 351 |
+ |
conIndex: Integer; |
| 352 |
|
const |
| 353 |
|
steps: Byte = 4; |
| 354 |
|
|
| 366 |
|
end; |
| 367 |
|
|
| 368 |
|
begin |
| 369 |
< |
if not CreateDataConnection(Source, ODB_Dat) then |
| 369 |
> |
if CreateDataConnection(Source, ODB_Dat) = nil then |
| 370 |
|
begin |
| 371 |
|
ShowMessage('Could not connect to .dat-file'); |
| 372 |
|
Exit; |
| 568 |
|
database.Close; |
| 569 |
|
database.Free; |
| 570 |
|
|
| 571 |
< |
CloseDataConnection; |
| 571 |
> |
CloseDataConnection(DataConnections[conIndex]); |
| 572 |
|
end; |
| 573 |
|
|
| 574 |
|
|