Changeset 37 for trunk/UCore.pas


Ignore:
Timestamp:
Dec 10, 2016, 10:36:38 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Wrong color in About form.
  • Fixed: Range check error in registry HKEY assignment.
  • Added: Windows 32-bit and 64-bit build profiles.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r34 r37  
    77uses
    88  Classes, SysUtils, XMLConf, FileUtil, Controls, UProject, UPhysDrive,
    9   UCoolTranslator, UPersistentForm, UApplicationInfo, URegistry, UScaleDPI;
     9  UCoolTranslator, UPersistentForm, UApplicationInfo, URegistry, UScaleDPI,
     10  Registry;
    1011
    1112type
     
    5758procedure TCore.LoadConfig;
    5859begin
    59   RegistryContext := RegContext(Integer(ApplicationInfo1.RegistryRoot), ApplicationInfo1.RegistryKey);
     60  RegistryContext := RegContext(HKEY(ApplicationInfo1.RegistryRoot), ApplicationInfo1.RegistryKey);
    6061  PersistentForm1.RegistryContext := RegistryContext;
    6162  XMLConfig1.Filename := GetAppConfigDir(False) + 'Config.xml';
     63  ForceDirectories(ExtractFileDir(XMLConfig1.Filename));
    6264
    6365  CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(XMLConfig1.GetValue('Language', ''));
Note: See TracChangeset for help on using the changeset viewer.