Changeset 70 for trunk/UCore.pas


Ignore:
Timestamp:
Oct 11, 2015, 6:50:33 PM (9 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r67 r70  
    2828    OpenProjectOnStart: Boolean;
    2929    OptimizationLevel: TCompilerOptimization;
     30    CellSize: Integer;
     31    MemorySize: Integer;
    3032    procedure LoadFromRegistry(Root: HKEY; Key: string);
    3133    procedure SaveToRegistry(Root: HKEY; Key: string);
     
    4345uses
    4446  UFormMain, UTargetJava, UTargetDelphi, UTargetPHP, UTargetC,
    45   UTargetInterpretter, UTargetFPC;
     47  UTargetInterpretter, UTargetFPC, UBFTarget;
    4648
    4749
     
    8688    ScaleDPI.AutoDetect := ReadBoolWithDefault('DPIAuto', True);
    8789    OptimizationLevel := TCompilerOptimization(ReadIntegerWithDefault('OptimizationLevel', Integer(coNormal)));
     90    MemorySize := ReadIntegerWithDefault('MemorySize', 30000);
     91    CellSize := ReadIntegerWithDefault('CellSize', 256);
    8892  finally
    8993    Free;
     
    106110    WriteInteger('DPIY', ScaleDPI.DPI.Y);
    107111    WriteInteger('OptimizationLevel', Integer(OptimizationLevel));
     112    WriteInteger('MemorySize', MemorySize);
     113    WriteInteger('CellSize', CellSize);
    108114    if Assigned(CoolTranslator1.Language) and (CoolTranslator1.Language.Code <> '') then
    109115      WriteString('LanguageCode', CoolTranslator1.Language.Code)
     
    127133    FCurrentTarget.OptimizationLevel := OptimizationLevel;
    128134    FCurrentTarget.Messages.OnChange := FormMain.MessagesChanged;
     135    if FCurrentTarget is TBFTarget then begin
     136      TBFTarget(FCurrentTarget).MemorySize := MemorySize;
     137      TBFTarget(FCurrentTarget).CellSize := CellSize;
     138    end;
    129139  end;
    130140  FormMain.UpdateTargetList;
Note: See TracChangeset for help on using the changeset viewer.