Ejemplo n.º 1
0
 /// <summary>
 /// Verifies the %LocalAppData%/Blizzard/Hearthstone/log.config file exists and contains the correct data to generate the Power.log
 /// and creates/updates it for the case it was not
 /// </summary>
 /// <returns>The verification result: `LogConfigState` (Ok/Updated/Error) and `Exception` in case of error.</returns>
 public static LogConfigResult VerifyLogConfig()
 {
     try
     {
         var updated = LogConfigUpdater.CheckLogConfig();
         return(new LogConfigResult(updated ? LogConfigState.Updated : LogConfigState.Ok));
     }
     catch (Exception ex)
     {
         return(new LogConfigResult(LogConfigState.Error, ex));
     }
 }