public MpqFileReader(WoWInstallation installation) { var languagePack = installation.LanguagePacks.FirstOrDefault(l => l.Culture.Equals(CultureInfo.CurrentUICulture)) ?? installation.LanguagePacks.FirstOrDefault(l => l.Culture.Name == "en-GB") ?? installation.LanguagePacks.First(); _fileSystem = installation.CreateFileSystem(languagePack, false); }
public MpqFileReader(WoWInstallation installation) { var languagePack = installation.LanguagePacks.FirstOrDefault(l => l.Culture.Equals(CultureInfo.CurrentUICulture)) ?? installation.LanguagePacks.FirstOrDefault(l => l.Culture.Name == "en-GB") ?? installation.LanguagePacks.First(); _fileSystem = installation.CreateFileSystem(languagePack, false); }
public MainForm(WoWInstallation wowInstallation, WoWLanguagePack languagePack) { InitializeComponent(); this.wowInstallation = wowInstallation; this.languagePack = languagePack; this.wowFileSystem = wowInstallation.CreateFileSystem(languagePack, false); spellDatabase = LoadDatabase <SpellRecord>(@"DBFilesClient\Spell.dbc"); spellIconDatabase = LoadDatabase <SpellIconRecord>(@"DBFilesClient\SpellIcon.dbc"); countToolStripLabel.Text = string.Format(CultureInfo.CurrentUICulture, Properties.Resources.SpellCountFormatString, spellDatabase.Records.Count); spellInformation = new SpellInformation(spellDatabase); UpdateDisplayInfo(); }
private void InitializeFileSystem() { // Create a new instance wowFileSystem = wowInstallation.CreateFileSystem(languagePack, false, false); }