Beispiel #1
0
        private void CreateVirtualHashTree()
        {
            //ConfigHashTree.Clear();
            JarModsHashTree.Clear();
            ModsHashTree.Clear();
            FlanHashTree.Clear();

            //HashTreeWalkDirectory(Config, ConfigHashTree);
            HashTreeWalkDirectory(JarMods, JarModsHashTree);
            HashTreeWalkDirectory(Mods, ModsHashTree);
            HashTreeWalkDirectory(FlanMods, FlanHashTree);
        }
Beispiel #2
0
        public PatchFile FindFile(string filename)
        {
            filename = filename.ToLower();
            PatchFile file = null;

            /*if (ConfigHashTree.TryGetValue(filename, out file))
             *  return file;*/
            if (JarModsHashTree.TryGetValue(filename, out file))
            {
                return(file);
            }
            if (ModsHashTree.TryGetValue(filename, out file))
            {
                return(file);
            }
            if (FlanHashTree.TryGetValue(filename, out file))
            {
                return(file);
            }

            return(file);
        }