public static CDNIndexHandler Initialize(CASCConfig config) { CDNIndexHandler handler = new CDNIndexHandler(config); for (int i = 0; i < config.Archives.Count; i++) { string archive = config.Archives[i]; if (Program.Settings.UseRemote) handler.DownloadIndexFile(archive, i); else handler.OpenIndexFile(archive, i); } return handler; }
public static CDNIndexHandler Initialize(CASCConfig config) { CDNIndexHandler handler = new CDNIndexHandler(config); for (int i = 0; i < config.Archives.Count; i++) { string archive = config.Archives[i]; if (Program.Settings.UseRemote) { handler.DownloadIndexFile(archive, i); } else { handler.OpenIndexFile(archive, i); } } return(handler); }