/// <summary> /// Check if a state is empty /// </summary> /// <param name="state"></param> /// <returns></returns> internal static bool StateIsSet(int state) { return(PathHandler.FileExists(PathHandler.GenBackupStateFile(state))); }
/// <summary> /// Restores the ModsConfig.xml Backup /// </summary> internal static void RestoreCurrent() { PathHandler.FileCopy(PathHandler.PathCombine(PathHandler.DIR_BACKUPS, PathHandler.FILE_MODSCONFIG_NAME), GenFilePathsAPI.ModsConfigFilePath, true); }