mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-25 13:30:20 +00:00
SaveDataFiler detection loop fix
Thank you SoujiSeta for pointing this one out!
This commit is contained in:
parent
e3094044ba
commit
b8ca1b11c2
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ namespace PKHeX
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue