mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
fix: dependency scan ignores folders above the game folder (#859)
This commit is contained in:
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)) {
|
||||
|
||||
Reference in new issue
Block a user