Changeset 247 for oup/current
- Timestamp:
- Nov 25, 2007, 3:24:53 PM (17 years ago)
- Location:
- oup/current
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/DataAccess/ConnectionManager.pas
r112 r247 2 2 interface 3 3 4 uses TypeDefs, DataAccess, Access_OniArchive, Access_OUP_ADB ;4 uses TypeDefs, DataAccess, Access_OniArchive, Access_OUP_ADB, Access_OniSplitArchive; 5 5 6 6 type … … 155 155 else if ext = '.DAT' then 156 156 backend := DB_ONI 157 else if ext = '.ONI' then 158 backend := DB_ONISPLIT 157 159 else 158 160 begin … … 168 170 DB_ADB: 169 171 FConnections[i] := TAccess_OUP_ADB.Create(FileName, FLastID + 1, CreateMsg); 172 DB_ONISPLIT: 173 FConnections[i] := TAccess_OniSplitArchive.Create(FileName, FLastID + 1, CreateMsg); 170 174 end; 171 175 … … 179 183 begin 180 184 FConnections[i].Close; 181 FConnections[i].Free;182 185 FConnections[i] := nil; 183 186 SetLength(FConnections, Length(FConnections) - 1); -
oup/current/Global/TypeDefs.pas
r241 r247 8 8 ENotImplemented = class(Exception); 9 9 10 TDataBackend = (DB_ONI, DB_ADB );10 TDataBackend = (DB_ONI, DB_ADB, DB_ONISPLIT); 11 11 TDataOS = (DOS_WIN, DOS_WINDEMO, DOS_MAC, DOS_MACBETA); 12 12 -
oup/current/Main.pas
r241 r247 218 218 ShowMessage('Load OPF-File: ' + ParamStr(2)); 219 219 end 220 else if (strings.Strings[0] = 'oldb') or (strings.Strings[0] = 'dat') then220 else if (strings.Strings[0] = 'oldb') or (strings.Strings[0] = 'dat') or (strings.Strings[0] = 'oni') then 221 221 begin 222 222 CreateConnection(strings.Strings[1]); … … 281 281 ShowMessage('Load OPF-File: ' + ParamStr(2)); 282 282 end 283 else if (MidStr(ParamStr(1), 1, 4) = 'oldb') or (MidStr(ParamStr(1), 1, 3) = 'dat') then283 else if (MidStr(ParamStr(1), 1, 4) = 'oldb') or (MidStr(ParamStr(1), 1, 3) = 'dat') or (MidStr(ParamStr(1), 1, 3) = 'oni') then 284 284 begin 285 285 CreateConnection(ParamStr(2)); … … 520 520 begin 521 521 opend.InitialDir := AppSettings.DatPath; 522 opend.Filter := 'Compatible level files|*.dat;*.o ldb|Oni level (*.dat)|*.dat|OUP level database (*.oldb)|*.oldb|Any (*.*)|*';522 opend.Filter := 'Compatible level files|*.dat;*.oni;*.oldb|Oni level (*.dat)|*.dat|OniSplit Archive (*.oni)|*.oni|OUP level database (*.oldb)|*.oldb|Any (*.*)|*'; 523 523 if typedb then 524 524 opend.FilterIndex := 3 -
oup/current/OniUnPacker.dpr
r245 r247 46 46 _Extensions in 'FileClasses\_Extensions.pas', 47 47 _MetaTypes in 'FileClasses\_MetaTypes.pas', 48 _TreeElement in 'FileClasses\_TreeElement.pas'; 48 _TreeElement in 'FileClasses\_TreeElement.pas', 49 Access_OniSplitArchive in 'DataAccess\Access_OniSplitArchive.pas'; 49 50 50 51 {$R *.res}
Note:
See TracChangeset
for help on using the changeset viewer.