From b8ca1b11c2e5af9919bcb4293065a050076ce55d Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 29 Nov 2014 21:29:40 -0800 Subject: [PATCH] SaveDataFiler detection loop fix Thank you SoujiSeta for pointing this one out! --- Misc/Util.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/Util.cs b/Misc/Util.cs index 0c6a646dd..f3e14260c 100644 --- a/Misc/Util.cs +++ b/Misc/Util.cs @@ -153,7 +153,7 @@ internal static string GetSDFLocation() string[] folders = Directory.GetDirectories(path_SDF, "*", System.IO.SearchOption.TopDirectoryOnly); // Loop through all the folders in the Nintendo 3DS folder to see if any of them contain 'title'. - for (int i = folders.Length - 1; i > 0; i--) + for (int i = folders.Length - 1; i >= 0; i--) { if (File.Exists(Path.Combine(folders[i], "000011c4" + Path.DirectorySeparatorChar + "main"))) return Path.Combine(folders[i], "000011c4"); // OR if (File.Exists(Path.Combine(folders[i], "000011c5" + Path.DirectorySeparatorChar + "main"))) return Path.Combine(folders[i], "000011c5"); // AS