Changeset 37 for trunk/UCore.pas
- Timestamp:
- Dec 10, 2016, 10:36:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r34 r37 7 7 uses 8 8 Classes, SysUtils, XMLConf, FileUtil, Controls, UProject, UPhysDrive, 9 UCoolTranslator, UPersistentForm, UApplicationInfo, URegistry, UScaleDPI; 9 UCoolTranslator, UPersistentForm, UApplicationInfo, URegistry, UScaleDPI, 10 Registry; 10 11 11 12 type … … 57 58 procedure TCore.LoadConfig; 58 59 begin 59 RegistryContext := RegContext( Integer(ApplicationInfo1.RegistryRoot), ApplicationInfo1.RegistryKey);60 RegistryContext := RegContext(HKEY(ApplicationInfo1.RegistryRoot), ApplicationInfo1.RegistryKey); 60 61 PersistentForm1.RegistryContext := RegistryContext; 61 62 XMLConfig1.Filename := GetAppConfigDir(False) + 'Config.xml'; 63 ForceDirectories(ExtractFileDir(XMLConfig1.Filename)); 62 64 63 65 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(XMLConfig1.GetValue('Language', ''));
Note:
See TracChangeset
for help on using the changeset viewer.