public static void RestoreFiles() { QuickLogger.Info($"Restoring files. Version {version}"); try { RestoreAssets(); HelpFilesWriter.HandleHelpFiles(); } catch (Exception ex) { QuickLogger.Error($"Critical error during file restoration", ex); } }
public static void Patch() { QuickLogger.Info($"Started patching. Version {QuickLogger.GetAssemblyVersion()}"); try { CustomCraft2Config.CheckLogLevel(); RestoreAssets(); HelpFilesWriter.HandleHelpFiles(); WorkingFileParser.HandleWorkingFiles(); QuickLogger.Info("Finished patching."); } catch (Exception ex) { QuickLogger.Error($"Critical error during patching{Environment.NewLine}{ex}"); } }