fixed config options handling if no config file exists

This commit is contained in:
Alexander Eckart committed 2012-02-22 18:12:46 +01:00
1 parent 175ae1963c
commit 9103da402c
1 file changed
+3 -7
+3 -7
View File
@@ -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()