Search in the subdirectories also to find pak files

This commit is contained in:
Christopher Madi 2019-11-01 17:05:34 +02:00 committed by GitHub
parent 92ab3521ca
commit cce22d68f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ namespace FModel.Methods.PAKs
private static IEnumerable<string> GetPAKsFromPath()
{
return Directory.GetFiles(PAK_PATH).Where(x => x.EndsWith(".pak"));
return Directory.GetFiles(PAK_PATH,"*.pak",SearchOption.AllDirectories);
}
}
}
}