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

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r67 r70  
    167167uses
    168168  UCore, UFormCPU, UFormOptions, UFormMessages, UFormTargets, UFormOutput, UFormInput,
    169   UFormMemory, UFormSourceCode, UFormTargetCode, UTargetInterpretter, UFormLog;
     169  UFormMemory, UFormSourceCode, UFormTargetCode, UTargetInterpretter, UFormLog,
     170  UBFTarget;
    170171
    171172resourcestring
     
    454455begin
    455456  OptionsForm.Load;
    456   //OptionsForm.LoadFromInterpretter(CurrentTarget);
    457457  if OptionsForm.ShowModal = mrOK then begin
    458     //OptionsForm.SaveToInterpretter(CurrentTarget);
    459458    OptionsForm.Save;
    460     if Assigned(Core.CurrentTarget) then
     459    if Assigned(Core.CurrentTarget) then begin
    461460      Core.CurrentTarget.OptimizationLevel := Core.OptimizationLevel;
     461      if Core.CurrentTarget is TBFTarget then begin
     462        TBFTarget(Core.CurrentTarget).CellSize := Core.CellSize;
     463        TBFTarget(Core.CurrentTarget).MemorySize := Core.MemorySize;
     464      end;
     465    end;
    462466  end;
    463467end;
Note: See TracChangeset for help on using the changeset viewer.