X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Feditor%2Ff_options.pas;h=2f7d323eb23977e1e8df2c6891e949cbe942658c;hb=6f6c01c59fa41269434569e5e69b966b83ea18d7;hp=fe05e20f2e5a964b59a9d6b649a34c5079f0aa46;hpb=3c82d66d2cc9d0ea466a0129c1455b2fa194c810;p=d2df-editor.git diff --git a/src/editor/f_options.pas b/src/editor/f_options.pas index fe05e20..2f7d323 100644 --- a/src/editor/f_options.pas +++ b/src/editor/f_options.pas @@ -10,16 +10,11 @@ uses ExtCtrls, ComCtrls, ActnList, Spin, EditBtn, Registry, Math, Types; type - - { TOptionsForm } - TOptionsForm = class (TForm) bOK: TButton; bCancel: TButton; cbAllowExit: TCheckBox; - cbBackup: TCheckBox; cbCheckerboard: TCheckBox; - cbCompress: TCheckBox; cbLanguage: TComboBox; cbMapOnce: TCheckBox; cbMonstersDM: TCheckBox; @@ -77,7 +72,7 @@ procedure RegisterFileType(ext: String; FileName: String); implementation uses - LazFileUtils, f_main, StdConvs, CONFIG, g_language, g_resources, g_options; + LazFileUtils, f_main, StdConvs, CONFIG, WADEDITOR, g_language, g_options; {$R *.lfm} @@ -136,8 +131,6 @@ begin end; // Files Tab: - cbCompress.Checked := Compress; - cbBackup.Checked := Backup; SpinEdit3.Value := RecentCount; // Testing Tab: @@ -194,8 +187,6 @@ begin // Files tab: re := SpinEdit3.Value; - Compress := cbCompress.Checked; - Backup := cbBackup.Checked; // Testing tab: TestD2DExe := ExeEdit.Text; @@ -225,6 +216,8 @@ begin // save into config config := TConfig.CreateFile(CfgFileName); + config.WriteInt('WADEditor', 'LogLevel', gWADEditorLogLevel); + config.WriteInt('Editor', 'DotColor', DotColor); config.WriteBool('Editor', 'DotEnable', DotEnable); config.WriteInt('Editor', 'DotStepOne', DotStepOne); @@ -240,8 +233,6 @@ begin config.WriteStr('Editor', 'Language', gLanguage); config.WriteInt('Editor', 'RecentCount', re); - config.WriteBool('Editor', 'Compress', Compress); - config.WriteBool('Editor', 'Backup', Backup); config.WriteStr('TestRun', 'GameMode', TestGameMode); config.WriteStr('TestRun', 'LimTime', TestLimTime);