summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit/Framework/ModScanning
diff options
context:
space:
mode:
authorNuz / Lovegood <nuztalgia@gmail.com>2022-04-10 18:20:11 -0700
committerNuz / Lovegood <nuztalgia@gmail.com>2022-04-10 18:20:11 -0700
commitc92efc65ce7cbfbca3e92e027141e6b8d90073c8 (patch)
tree4342f34293a89955b78862675d617bbefbb07bd9 /src/SMAPI.Toolkit/Framework/ModScanning
parent0336fb252420194d518d6c21c3d1a8f372565c2f (diff)
downloadSMAPI-c92efc65ce7cbfbca3e92e027141e6b8d90073c8.tar.gz
SMAPI-c92efc65ce7cbfbca3e92e027141e6b8d90073c8.tar.bz2
SMAPI-c92efc65ce7cbfbca3e92e027141e6b8d90073c8.zip
Make ModScanner ignore .gitignore files.
This is helpful for cases like this: https://cdn.discordapp.com/attachments/156109690059751424/962879339739885578/unknown.png
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/ModScanning')
-rw-r--r--src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs b/src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs
index 2af30092..59652832 100644
--- a/src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs
+++ b/src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs
@@ -56,7 +56,10 @@ namespace StardewModdingAPI.Toolkit.Framework.ModScanning
// Windows shortcut files
".url",
- ".lnk"
+ ".lnk",
+
+ // gitignore files
+ ".gitignore"
};
/// <summary>The extensions for packed content files.</summary>