Esempio n. 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);
 }
Esempio n. 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);
        }
Esempio n. 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();
 }
Esempio n. 4
0
 private void InitializeFileSystem()
 {
     // Create a new instance
     wowFileSystem = wowInstallation.CreateFileSystem(languagePack, false, false);
 }