mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-13 23:35:21 -05:00
null/empty check -> check both
This commit is contained in:
@@ -127,14 +127,14 @@ public static IEnumerable<SaveFile> GetSaveFiles(IReadOnlyList<string> drives, b
|
||||
|
||||
public static IEnumerable<string> GetFoldersToCheck(IReadOnlyList<string> drives, IEnumerable<string> extra)
|
||||
{
|
||||
var foldersToCheck = extra.Where(f => f.Length > 0).Concat(CustomBackupPaths);
|
||||
var foldersToCheck = extra.Where(f => !string.IsNullOrWhiteSpace(f)).Concat(CustomBackupPaths);
|
||||
|
||||
string path3DS = Path.GetPathRoot(Get3DSLocation(drives));
|
||||
if (path3DS != null) // check for Homebrew/CFW backups
|
||||
if (!string.IsNullOrEmpty(path3DS)) // check for Homebrew/CFW backups
|
||||
foldersToCheck = foldersToCheck.Concat(Get3DSBackupPaths(path3DS));
|
||||
|
||||
string pathNX = Path.GetPathRoot(GetSwitchLocation(drives));
|
||||
if (pathNX != null) // check for Homebrew/CFW backups
|
||||
if (!string.IsNullOrEmpty(pathNX)) // check for Homebrew/CFW backups
|
||||
foldersToCheck = foldersToCheck.Concat(GetSwitchBackupPaths(pathNX));
|
||||
|
||||
return foldersToCheck;
|
||||
|
||||
Reference in New Issue
Block a user