fix: dependency scan ignores folders above the game folder (#859)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-15 07:03:17 -04:00
1 parent d3b0b8e51c
commit 9e7b4c0b50
2 files changed
+19 -1

No files matched your search

@@ -76,7 +76,7 @@ object DependencyDetector {
fun consider(f: File, isDir: Boolean, insideRedist: Boolean) {
val name = f.name.lowercase(Locale.US)
val path = f.path.replace('\\', '/').lowercase(Locale.US)
val path = relativeReason(gameDir, f).lowercase(Locale.US)
val kind = if (insideRedist || isDir || name.endsWith(".exe") || name.endsWith(".msi") || name.endsWith(".cab"))
Kind.BUNDLED else Kind.SHIPPED
for (comp in classify(path, name, isDir)) {