Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Oct 4, 2024
1 parent d676839 commit 7ddd7b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ddd7b8

Please sign in to comment.