]> git.lizzy.rs Git - minetest.git/blobdiff - src/mods.cpp
Make m_media_fetch_threads to contain MediaFetchThread* instead of MediaFetchThread
[minetest.git] / src / mods.cpp
index c2bb907c2f76d4d776ee168e6a121288e9797bed..08e8e276f31f19a5169fc5620d9b12b75e7c5266 100644 (file)
@@ -39,6 +39,10 @@ static void collectMods(const std::string &modspath,
                if(!dirlist[j].dir)
                        continue;
                std::string modname = dirlist[j].name;
+               // Ignore all directories beginning with a ".", especially
+               // VCS directories like ".git" or ".svn"
+               if(modname[0] == '.')
+                       continue;
                std::string modpath = modspath + DIR_DELIM + modname;
                TRACESTREAM(<<indentation<<"collectMods: "<<modname<<" at \""<<modpath<<"\""<<std::endl);
                // Handle modpacks (defined by containing modpack.txt)