public override ResourceOptions GetDefaultOptions() { string title = Properties.Settings.Default.TacticsArcTitle; ArcScheme scheme = null; if (!KnownSchemes.TryGetValue(title, out scheme) && !string.IsNullOrEmpty(Properties.Settings.Default.TacticsArcPassword)) { scheme = new ArcScheme(Properties.Settings.Default.TacticsArcPassword); } return(new TacticsOptions { Scheme = scheme }); }
public TacticsArcFile(ArcView file, ArchiveFormat format, ICollection <Entry> dir, ArcScheme scheme) : base(file, format, dir) { Password = Encodings.cp932.GetBytes(scheme.Password); CustomLzss = scheme.CustomLzss; }