Beispiel #1
0
        public void LoadAllModsInDirectory()
        {
            var directories = Directory.GetDirectories(Path.GetDirectoryName(ConfigHolder.GetProcessPath()));

            foreach (string s in directories)
            {
                if (ConfigHolder.IsModFolder(ConfigHolder.ShortenModPath(s)))
                {
                    if (AddMod(s))
                    {
                        window.AddItemToList(window.ModList, ConfigHolder.ShortenModPath(s));
                    }
                }
            }
        }