fixed config options handling if no config file exists
This commit is contained in:
1 parent
175ae1963c
commit
9103da402c
1 file changed
+3
-7
@@ -224,14 +224,10 @@ namespace Vocaluxe.Base
|
|||||||
MicConfig = new SMicConfig[CSettings.MaxNumPlayer];
|
MicConfig = new SMicConfig[CSettings.MaxNumPlayer];
|
||||||
|
|
||||||
// Init config file
|
// Init config file
|
||||||
if (File.Exists(CSettings.sFileConfig))
|
if (!File.Exists(CSettings.sFileConfig))
|
||||||
{
|
|
||||||
LoadConfig();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SaveConfig();
|
SaveConfig();
|
||||||
}
|
|
||||||
|
LoadConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool LoadConfig()
|
public static bool LoadConfig()
|
||||||
|
|||||||
Reference in new issue
Block a user