From 7ddd7b8973005d57a1b015af82a4bf543d39ea49 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Fri, 4 Oct 2024 18:45:15 +0300 Subject: [PATCH] Fix --- .../CrashReportCreatorHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs b/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs index b01d617..7a8e234 100644 --- a/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs +++ b/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs @@ -188,11 +188,11 @@ static bool IsTWCore(Assembly assembly) return false; var configurationFolder = Path.GetDirectoryName(assembly.Location); var binFolder = Path.GetDirectoryName(configurationFolder); - if (!string.Equals(binFolder, "bin", StringComparison.OrdinalIgnoreCase)) + if (!string.Equals(Path.GetFileName(binFolder), "bin", StringComparison.OrdinalIgnoreCase)) return false; var moduleFolder = Path.GetDirectoryName(binFolder); var modulesFolder = Path.GetDirectoryName(moduleFolder); - if (string.Equals(modulesFolder, "Modules", StringComparison.OrdinalIgnoreCase)) + if (string.Equals(Path.GetFileName(modulesFolder), "Modules", StringComparison.OrdinalIgnoreCase)) return false; return true;