Changeset 70 for trunk/UCore.pas
- Timestamp:
- Oct 11, 2015, 6:50:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r67 r70 28 28 OpenProjectOnStart: Boolean; 29 29 OptimizationLevel: TCompilerOptimization; 30 CellSize: Integer; 31 MemorySize: Integer; 30 32 procedure LoadFromRegistry(Root: HKEY; Key: string); 31 33 procedure SaveToRegistry(Root: HKEY; Key: string); … … 43 45 uses 44 46 UFormMain, UTargetJava, UTargetDelphi, UTargetPHP, UTargetC, 45 UTargetInterpretter, UTargetFPC ;47 UTargetInterpretter, UTargetFPC, UBFTarget; 46 48 47 49 … … 86 88 ScaleDPI.AutoDetect := ReadBoolWithDefault('DPIAuto', True); 87 89 OptimizationLevel := TCompilerOptimization(ReadIntegerWithDefault('OptimizationLevel', Integer(coNormal))); 90 MemorySize := ReadIntegerWithDefault('MemorySize', 30000); 91 CellSize := ReadIntegerWithDefault('CellSize', 256); 88 92 finally 89 93 Free; … … 106 110 WriteInteger('DPIY', ScaleDPI.DPI.Y); 107 111 WriteInteger('OptimizationLevel', Integer(OptimizationLevel)); 112 WriteInteger('MemorySize', MemorySize); 113 WriteInteger('CellSize', CellSize); 108 114 if Assigned(CoolTranslator1.Language) and (CoolTranslator1.Language.Code <> '') then 109 115 WriteString('LanguageCode', CoolTranslator1.Language.Code) … … 127 133 FCurrentTarget.OptimizationLevel := OptimizationLevel; 128 134 FCurrentTarget.Messages.OnChange := FormMain.MessagesChanged; 135 if FCurrentTarget is TBFTarget then begin 136 TBFTarget(FCurrentTarget).MemorySize := MemorySize; 137 TBFTarget(FCurrentTarget).CellSize := CellSize; 138 end; 129 139 end; 130 140 FormMain.UpdateTargetList;
Note:
See TracChangeset
for help on using the changeset viewer.