From 649e3b2ceb857ad2bdd49ed0d3b5c9cb657a9313 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 18 Nov 2017 03:21:10 -0600 Subject: [PATCH] Minor tweak --- DS4Windows/DS4Forms/DS4Form.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 5256c66..0bea96e 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -248,8 +248,11 @@ namespace DS4Windows try { string[] profiles = Directory.GetFiles(appdatapath + @"\Profiles\"); - foreach (string s in profiles) + string s = string.Empty; + //foreach (string s in profiles) + for (int i = 0, proflen = profiles.Length; i < proflen; i++) { + s = profiles[i]; if (Path.GetExtension(s) == ".xml") { xDoc.Load(s);