Пример #1
0
 /// <summary>
 /// Cleans up all replacement files
 /// Should be called when the game is first loaded
 /// </summary>
 public static void CleanUpReplacementFiles()
 {
     File.Delete(Globals.GetFilePath("Assets/CustomImages/Bundles/randomizedImage.png"));
     File.Delete(Globals.GetFilePath("Assets/CustomImages/Weapons/randomizedImage.png"));
     File.Delete(Globals.GetFilePath("Assets/CustomImages/SpringObjects/randomizedImage.png"));
     File.Delete(Globals.GetFilePath("Assets/CustomImages/CropGrowth/randomizedImage.png"));
 }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="farmName">The name of the farm - used to easily identify the log</param>
        public SpoilerLogger(string farmName)
        {
            if (!Globals.Config.CreateSpoilerLog)
            {
                return;
            }

            Path = Globals.GetFilePath($"SpoilerLog-{farmName}.txt");
            File.Create(Path).Close();
        }