示例#1
0
 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);
 }
示例#2
0
        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);
        }
示例#3
0
 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();
 }
示例#4
0
 private void InitializeFileSystem()
 {
     // Create a new instance
     wowFileSystem = wowInstallation.CreateFileSystem(languagePack, false, false);
 }