From cce22d68f46c4d69c87194ddaf6245409e9739e1 Mon Sep 17 00:00:00 2001 From: Christopher Madi Date: Fri, 1 Nov 2019 17:05:34 +0200 Subject: [PATCH] Search in the subdirectories also to find pak files --- FModel/Methods/PAKs/RegisterFromPath.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FModel/Methods/PAKs/RegisterFromPath.cs b/FModel/Methods/PAKs/RegisterFromPath.cs index 4589cfb4..211d6503 100644 --- a/FModel/Methods/PAKs/RegisterFromPath.cs +++ b/FModel/Methods/PAKs/RegisterFromPath.cs @@ -55,7 +55,7 @@ namespace FModel.Methods.PAKs private static IEnumerable GetPAKsFromPath() { - return Directory.GetFiles(PAK_PATH).Where(x => x.EndsWith(".pak")); + return Directory.GetFiles(PAK_PATH,"*.pak",SearchOption.AllDirectories); } } -} \ No newline at end of file +}