Allow multiple <logging> nodes in the debug config.

master
Pacman Ghost 7 years ago
parent f29a64fc94
commit e37baf36d8
  1. 5
      MainApp/DebugConfig.cs

@ -40,10 +40,9 @@ namespace MouseInterception
if ( xmlNode != null )
mSettings.mLogFilename = xmlNode.InnerText.Trim() ;
mSettings.mLogging = "" ;
xmlNode = debugXmlNode.SelectSingleNode( "logging" ) ;
if ( xmlNode != null )
foreach ( XmlNode xn in debugXmlNode.SelectNodes("logging") )
{
foreach( XmlAttribute xa in xmlNode.Attributes )
foreach( XmlAttribute xa in xn.Attributes )
{
if ( Boolean.Parse( xa.Value ) )
{

Loading…
Cancel
Save