DEADSOFTWARE

dfzip: more checks and user visible errors
[d2df-editor.git] / src / editor / f_main.pas
index dfb9b75ef200377d2fbf27e5e7d780ac63f3acff..44cf2a40340a3b25c783347052cb517ff3ea3b78 100644 (file)
@@ -2756,6 +2756,8 @@ begin
 
   config := TConfig.CreateFile(CfgFileName);
 
+  gWADEditorLogLevel := config.ReadInt('WADEditor', 'LogLevel', DFWAD_LOG_DEFAULT);
+
   if config.ReadInt('Editor', 'XPos', -1) = -1 then
     Position := poDesktopCenter
   else begin
@@ -4382,6 +4384,8 @@ var
 begin
   config := TConfig.CreateFile(CfgFileName);
 
+  config.WriteInt('WADEditor', 'LogLevel', gWADEditorLogLevel);
+
   if WindowState <> wsMaximized then
   begin
     config.WriteInt('Editor', 'XPos', Left);