--- oup/current/Main.pas 2007/07/17 22:27:16 241 +++ oup/current/Main.pas 2007/11/26 11:02:28 248 @@ -217,7 +217,7 @@ begin begin ShowMessage('Load OPF-File: ' + ParamStr(2)); end - else if (strings.Strings[0] = 'oldb') or (strings.Strings[0] = 'dat') then + else if (strings.Strings[0] = 'oldb') or (strings.Strings[0] = 'dat') or (strings.Strings[0] = 'oni') then begin CreateConnection(strings.Strings[1]); end; @@ -280,7 +280,7 @@ begin begin ShowMessage('Load OPF-File: ' + ParamStr(2)); end - else if (MidStr(ParamStr(1), 1, 4) = 'oldb') or (MidStr(ParamStr(1), 1, 3) = 'dat') then + else if (MidStr(ParamStr(1), 1, 4) = 'oldb') or (MidStr(ParamStr(1), 1, 3) = 'dat') or (MidStr(ParamStr(1), 1, 3) = 'oni') then begin CreateConnection(ParamStr(2)); end; @@ -508,7 +508,6 @@ begin entry.Name := 'menu_conn_' + IntToStr(i); entry.OnClick := menu_conns_itemClick; menu_conns.Add(entry); - entry := nil; end; end; end; @@ -519,9 +518,9 @@ var i: Integer; begin opend.InitialDir := AppSettings.DatPath; - opend.Filter := 'Compatible level files|*.dat;*.oldb|Oni level (*.dat)|*.dat|OUP level database (*.oldb)|*.oldb|Any (*.*)|*'; + opend.Filter := 'Compatible level files|*.dat;*.oni;*.oldb|Oni level (*.dat)|*.dat|OniSplit Archive (*.oni)|*.oni|OUP level database (*.oldb)|*.oldb|Any (*.*)|*'; if typedb then - opend.FilterIndex := 3 + opend.FilterIndex := 4 else opend.FilterIndex := 2; if opend.Execute then