| 14 | 
   | 
     check_reg_dat: TCheckBox; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 15 | 
   | 
     check_reg_oldb: TCheckBox; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 16 | 
   | 
     check_reg_opf: TCheckBox; | 
 
 
 
 
 
 
 
 
 | 17 | 
 + | 
     check_reg_oni: TCheckBox; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 18 | 
   | 
     procedure btn_cancelClick(Sender: TObject); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 19 | 
   | 
     procedure btn_okClick(Sender: TObject); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 20 | 
   | 
     procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 40 | 
   | 
 var | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 41 | 
   | 
   ftr: TFileTypeRegistration; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 42 | 
   | 
 begin | 
 
 
 
 
 
 
 
 
 | 43 | 
 + | 
   Result := True; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 44 | 
   | 
   ftr := TFileTypeRegistration.Create; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 45 | 
   | 
   if (ftr <> nil) then | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 46 | 
   | 
   begin | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 62 | 
   | 
 var | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 63 | 
   | 
   ftr:     TFileTypeRegistration; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 64 | 
   | 
   temps:   String; | 
 
 
 
 
 
 
 
 
 
 | 63 | 
 – | 
   warnmsg: String; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 65 | 
   | 
 begin | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 66 | 
   | 
   Result := -1; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 67 | 
   | 
   ftr := TFileTypeRegistration.Create; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 118 | 
   | 
   end else | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 119 | 
   | 
     RegisterExtension('.dat', 2, False); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 120 | 
   | 
  | 
 
 
 
 
 
 
 
 
 | 121 | 
 + | 
   if check_reg_oni.Checked then | 
 
 
 
 
 
 
 
 
 | 122 | 
 + | 
   begin | 
 
 
 
 
 
 
 
 
 | 123 | 
 + | 
     if ExtensionRegistered('.oni', temps) then | 
 
 
 
 
 
 
 
 
 | 124 | 
 + | 
     begin | 
 
 
 
 
 
 
 
 
 | 125 | 
 + | 
       if temps <> 'ONI.oni' then | 
 
 
 
 
 
 
 
 
 | 126 | 
 + | 
         if MessageBox(Self.Handle, PChar('.oni-files already registered to "' + | 
 
 
 
 
 
 
 
 
 | 127 | 
 + | 
               temps+'". Reregister?'), PChar('Reregister?'), | 
 
 
 
 
 
 
 
 
 | 128 | 
 + | 
               MB_YESNO + MB_ICONQUESTION) = ID_YES then | 
 
 
 
 
 
 
 
 
 | 129 | 
 + | 
           RegisterExtension('.oni', 2, True); | 
 
 
 
 
 
 
 
 
 | 130 | 
 + | 
     end else | 
 
 
 
 
 
 
 
 
 | 131 | 
 + | 
       RegisterExtension('.oni', 2, True); | 
 
 
 
 
 
 
 
 
 | 132 | 
 + | 
   end else | 
 
 
 
 
 
 
 
 
 | 133 | 
 + | 
     RegisterExtension('.oni', 2, False); | 
 
 
 
 
 
 
 
 
 | 134 | 
 + | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 135 | 
   | 
   if check_reg_oldb.Checked then | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 136 | 
   | 
   begin | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 137 | 
   | 
     if ExtensionRegistered('.oldb', temps) then | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 185 | 
   | 
   else | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 186 | 
   | 
     check_reg_dat.Checked := False; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 187 | 
   | 
  | 
 
 
 
 
 
 
 
 
 | 188 | 
 + | 
   if ExtensionRegistered('.oni', temps) then | 
 
 
 
 
 
 
 
 
 | 189 | 
 + | 
     check_reg_dat.Checked := temps = 'ONI.oni' | 
 
 
 
 
 
 
 
 
 | 190 | 
 + | 
   else | 
 
 
 
 
 
 
 
 
 | 191 | 
 + | 
     check_reg_dat.Checked := False; | 
 
 
 
 
 
 
 
 
 | 192 | 
 + | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 193 | 
   | 
   if ExtensionRegistered('.oldb', temps) then | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 194 | 
   | 
     check_reg_oldb.Checked := temps = 'ONI.oldb' | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 195 | 
   | 
   else |