private void SetArma2OABetaVersion()
 {
     if (!string.IsNullOrEmpty(Arma2OAExePath))
     {
         Arma2OABetaVersion = GameVersions.ExtractArma2OABetaVersion(Arma2OAExePath);
     }
     else
     {
         Arma2OABetaVersion = null;
     }
 }
Пример #2
0
 private void SetArma2OAExePath()
 {
     if (!string.IsNullOrWhiteSpace(UserSettings.Current.GameOptions.Arma2OADirectoryOverride))
     {
         Arma2OAExePath = GameVersions.BuildArma2OAExePath(UserSettings.Current.GameOptions.Arma2OADirectoryOverride);
     }
     else
     {
         Arma2OAExePath = LocalMachineInfo.Current.Arma2OABetaExe;
     }
 }
 private void SetDayZVersion()
 {
     if (!string.IsNullOrEmpty(DayZPath))
     {
         DayZVersion = GameVersions.ExtractDayZVersion(DayZPath);
     }
     else
     {
         DayZVersion = null;
     }
 }
Пример #4
0
 public void Update()
 {
     try
     {
         if (IntPtr.Size == 8)
         {
             SetPathsX64();
         }
         else
         {
             SetPathsX86();
         }
         Arma2OABetaVersion = GameVersions.ExtractArma2OABetaVersion(Arma2OABetaExe);
         DayZVersion        = GameVersions.ExtractDayZVersion(DayZPath);
     }
     catch            //(Exception e)
     {
         //Disabled for now
         //_logger.ErrorException("Unable to retrieve Local Machine Info.", e);
     }
 }