예제 #1
0
 public static void Init()
 {
     GlobalData.LocaleManager = new gPatcher.Helpers.GlobalDataHolding.LocaleManager();
     GlobalData.LocaleManager.SetDefaultCulture();
     GlobalData.ElswordFilesInfo = new ElswordFilesManager();
     GlobalData.VoicePacks       = SerializationEx.DeserializeString <List <VoicePack> >(Text.Data_DownloadInfo);
     GlobalData.ModPacksManager  = new gPatcher.Helpers.GlobalDataHolding.ModPacksManager();
     GlobalData.PresetsManager   = gPatcher.Helpers.GlobalDataHolding.PresetsManager.Load();
 }
예제 #2
0
 public ElswordFilesManager()
 {
     this._embeddedFiles = SerializationEx.DeserializeString <List <ElswordFile> >(Text.Data_ElswordFileInfo);
     this._embeddedFiles.Sort <ElswordFile, string>((ElswordFile f) => f.FileName);
     this.ReloadFiles();
 }