diff --git a/Util/AddonScanner.cs b/Util/AddonScanner.cs index b2e2ecb..ea26774 100644 --- a/Util/AddonScanner.cs +++ b/Util/AddonScanner.cs @@ -31,9 +31,10 @@ private static List GetInstalledLiveries(string communityFolder) foreach (string addonDirectory in addonDirectories) { string finalDirectory = addonDirectory; - if (!Directory.Exists(addonDirectory + "\\manifest.json")) continue; + if (!File.Exists(addonDirectory + "\\manifest.json")) continue; JObject manifest = JObject.Parse(File.ReadAllText(addonDirectory + "\\manifest.json")); + Console.WriteLine(addonDirectory + "\\manifest.json"); if (((string)manifest["content_type"])?.ToLower() != "aircraft") continue; finalDirectory += "\\SimObjects\\Airplanes"; @@ -42,7 +43,7 @@ private static List GetInstalledLiveries(string communityFolder) string[] airplaneDirectories = Directory.GetDirectories(finalDirectory); finalDirectory = airplaneDirectories[0] + "\\aircraft.cfg"; - if (!Directory.Exists(finalDirectory)) continue; + if (!File.Exists(finalDirectory)) continue; liveries.AddRange(ParseCfg(finalDirectory)); }