Ignore:
Timestamp:
Apr 18, 2019, 3:34:38 PM (5 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UMainForm.pas

    r36 r38  
    66
    77uses
    8   Registry, XMLConf, Classes, SysUtils, FileUtil, Forms, Controls, Graphics,
     8  XMLConf, Classes, SysUtils, FileUtil, Forms, Controls, Graphics,
    99  Dialogs, ExtCtrls, ComCtrls, Menus, ActnList, UCore, UPlatform, Math,
    1010  DateUtils, GraphType, UPersistentForm, UApplicationInfo, UCoolTranslator,
     
    7878
    7979uses
    80   UMapForm, UNewGameForm, UDebugForm;
     80  UMapForm, UNewGameForm;
    8181
    8282resourcestring
     
    123123begin
    124124  if Assigned(Engine) then Engine.SaveConfig(XMLConfig1, '');
     125  ForceDirectories(ExtractFileDir(XMLConfig1.Filename));
    125126  XMLConfig1.Flush;
    126127end;
     
    136137
    137138  PersistentForm := TPersistentForm.Create(nil);
    138   PersistentForm.RegistryContext := RegContext(HKEY(ApplicationInfo1.RegistryRoot),
     139  PersistentForm.RegistryContext := TRegistryContext.Create(ApplicationInfo1.RegistryRoot,
    139140    ApplicationInfo1.RegistryKey);
    140141
Note: See TracChangeset for help on using the changeset viewer.