Changeset 128 for trunk/UCore.pas


Ignore:
Timestamp:
Jan 17, 2022, 4:53:31 PM (3 years ago)
Author:
chronos
Message:
  • Added: Two more code examples.
  • Added: Allow to disable debugging support.
  • Added: Remember last opened tab in options form.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r125 r128  
    3838    CellSize: Integer;
    3939    MemorySize: Integer;
     40    DebugEnabled: Boolean;
     41    OptionsFormTabIndex: Integer;
    4042    Optimizations: TOptimizations;
    4143    procedure Init;
     
    120122    MemorySize := ReadIntegerWithDefault('MemorySize', 30000);
    121123    CellSize := ReadIntegerWithDefault('CellSize', 256);
     124    DebugEnabled := ReadBoolWithDefault('DebugEnabled', True);
     125    OptionsFormTabIndex := ReadIntegerWithDefault('OptionsFormTabIndex', 0);
    122126    ThemeManager.Theme := ThemeManager.Themes.FindByName(ReadStringWithDefault('Theme', 'System'));
    123127  finally
     
    143147    WriteInteger('MemorySize', MemorySize);
    144148    WriteInteger('CellSize', CellSize);
     149    WriteBool('DebugEnabled', DebugEnabled);
     150    WriteInteger('OptionsFormTabIndex', OptionsFormTabIndex);
    145151    if Assigned(Translator.Language) and (Translator.Language.Code <> '') then
    146152      WriteString('LanguageCode', Translator.Language.Code)
Note: See TracChangeset for help on using the changeset viewer.