- Timestamp:
- Dec 10, 2016, 7:14:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r115 r122 7 7 uses 8 8 Classes, SysUtils, XMLConf, FileUtil, ActnList, Controls, Dialogs, Forms, 9 UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UCoolTranslator; 9 UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UCoolTranslator, URegistry, 10 Registry; 10 11 11 12 type … … 50 51 FInitialized: Boolean; 51 52 StoredDimension: TControlDimension; 53 RegistryContext: TRegistryContext; 52 54 procedure DoOnMove(CellFrom, CellTo: TCell; var CountOnce, 53 55 CountRepeat: Integer; Update: Boolean; var Confirm: Boolean); … … 85 87 UFormHelp; 86 88 89 const 90 DefaultRegKey = '\Software\Chronosoft\xTactics'; 91 87 92 resourcestring 88 93 SPlayerWins = 'Player %s wins'; … … 157 162 procedure TCore.LoadConfig; 158 163 begin 164 RegistryContext := RegContext(HKEY_CURRENT_USER, DefaultRegKey); 165 PersistentForm.RegistryContext := RegistryContext; 166 XMLConfig1.Filename := GetAppConfigDir(False) + 'Config.xml'; 167 159 168 LastMapFileName := XMLConfig1.GetValue('LastMapFileName', ''); 160 169 DevelMode := XMLConfig1.GetValue('DevelMode', false);
Note:
See TracChangeset
for help on using the changeset viewer.