mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-30 17:38:09 -05:00
SaveDataFiler detection loop fix
Thank you SoujiSeta for pointing this one out!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user