private void CreateVirtualHashTree() { //ConfigHashTree.Clear(); JarModsHashTree.Clear(); ModsHashTree.Clear(); FlanHashTree.Clear(); //HashTreeWalkDirectory(Config, ConfigHashTree); HashTreeWalkDirectory(JarMods, JarModsHashTree); HashTreeWalkDirectory(Mods, ModsHashTree); HashTreeWalkDirectory(FlanMods, FlanHashTree); }
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); }