Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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}");
            }
        }