コード例 #1
0
 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;
     }
 }
コード例 #3
0
 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);
     }
 }