If profile doesn't have Rainbow setting, turn rainbow mode off

This commit is contained in:
jays2kings 2014-05-04 22:39:59 -04:00
parent 35f322598c
commit 190649c3be

View File

@ -718,7 +718,7 @@ namespace DS4Control
try { Item = m_Xdoc.SelectSingleNode("/ScpControl/ButtonMouseSensitivity"); Int32.TryParse(Item.InnerText, out buttonMouseSensitivity[device]); }
catch { missingSetting = true; }
try { Item = m_Xdoc.SelectSingleNode("/ScpControl/Rainbow"); Double.TryParse(Item.InnerText, out rainbow[device]); }
catch { missingSetting = true; }
catch { rainbow[device] = 0; missingSetting = true; }
DS4KeyType keyType;
UInt16 wvk;
@ -866,7 +866,7 @@ namespace DS4Control
try { Item = m_Xdoc.SelectSingleNode("/ScpControl/ButtonMouseSensitivity"); Int32.TryParse(Item.InnerText, out buttonMouseSensitivity[device]); }
catch { missingSetting = true; }
try { Item = m_Xdoc.SelectSingleNode("/ScpControl/Rainbow"); Double.TryParse(Item.InnerText, out rainbow[device]); }
catch { missingSetting = true; }
catch { rainbow[device] = 0; missingSetting = true; }
DS4KeyType keyType;
UInt16 wvk;