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(); }
public ElswordFilesManager() { this._embeddedFiles = SerializationEx.DeserializeString <List <ElswordFile> >(Text.Data_ElswordFileInfo); this._embeddedFiles.Sort <ElswordFile, string>((ElswordFile f) => f.FileName); this.ReloadFiles(); }