Пример #1
0
        public static void InitializeNexus()
        {
            List <string> allFileNexus = FilesDir.Get(PathNexus);

            nexus = new Dictionary <string, List <string> >();

            foreach (var item in allFileNexus)
            {
                List <string> currentArch = FilesArch.Get(Path.Combine(PathNexus, item));

                if (!nexus.ContainsKey(item.Remove(item.LastIndexOf('.'))))
                {
                    nexus.Add(item.Remove(item.LastIndexOf('.')), currentArch);
                }
                else
                {
                    foreach (var file in currentArch)
                    {
                        if (!nexus[item.Remove(item.LastIndexOf('.'))].Contains(file))
                        {
                            nexus[item.Remove(item.LastIndexOf('.'))].Add(file);
                        }
                    }
                }

                countNexus += currentArch.Count;
            }
        }
Пример #2
0
 public static void InitializeSkyrim()
 {
     skyrim = FilesDir.Get(PathSkyrim);
 }