/// <summary> /// Creates a new BackupFileProvider that will persist over the program lifespan /// </summary> /// <returns>The newly created provider</returns> public static BackupFileProvider CreateProvider() { if (instance != null) { throw new InvalidOperationException("There is already an existing BackupFileProvider"); } instance = new BackupFileProvider(); instance.LoadFromFile(); return(instance); }
/// <summary> /// Remove a profile from our tracking collection /// </summary> /// <param name="profile">Profile to remove</param> public void RemoveBackupFile(GameProfile profile) { BackupFileProvider.GetProvider().DeleteBranch(profile.id); }