From 9103da402c3bc93a27c5a1b61b49f7e94c213d3b Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Wed, 22 Feb 2012 18:12:46 +0100 Subject: [PATCH] fixed config options handling if no config file exists --- Vocaluxe/Base/CConfig.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Vocaluxe/Base/CConfig.cs b/Vocaluxe/Base/CConfig.cs index 91e26b31..45ec4a5e 100644 --- a/Vocaluxe/Base/CConfig.cs +++ b/Vocaluxe/Base/CConfig.cs @@ -224,14 +224,10 @@ namespace Vocaluxe.Base MicConfig = new SMicConfig[CSettings.MaxNumPlayer]; // Init config file - if (File.Exists(CSettings.sFileConfig)) - { - LoadConfig(); - } - else - { + if (!File.Exists(CSettings.sFileConfig)) SaveConfig(); - } + + LoadConfig(); } public static bool LoadConfig()