Esempio n. 1
0
 public MainWindow()
 {
     try
     {
         singleProcessEnforcer.ForceSingleProcess();
         HLVRPaths.Initialize();
         HLVRSettingsManager.InitSettings();
         hlvrPatcher.Initialize();
         IsValidProcess = true;
         InitializeComponent();
         HLVRLauncherConfig.Initialize(LauncherConfig);
         HLVRModConfig.Initialize(ModConfig);
         InitializeNotifyIcon();
         UpdateState();
         HandleInitialSettings();
         LoadReadme();
     }
     catch (CancelAndTerminateAppException)
     {
         System.Windows.Application.Current.Shutdown();
     }
 }
Esempio n. 2
0
 private void UpdateSettingsAndLanguage()
 {
     I18N.Init();
     HLVRSettingsManager.InitSettings();
     I18N.Init();
 }