Skip to content

Commit

Permalink
Remove SaveToFile Function
Browse files Browse the repository at this point in the history
  • Loading branch information
skylayer committed Jul 15, 2024
1 parent cab28e6 commit 00fec82
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions SteamKit2/SteamKit2/Types/DepotManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,25 +219,6 @@ public bool DecryptFilenames(byte[] encryptionKey)
return true;
}

/// <summary>
/// Serializes depot manifest and saves the output to a file.
/// </summary>
/// <param name="filename">Output file name.</param>
/// <returns><c>true</c> if serialization was successful; otherwise, <c>false</c>.</returns>
public bool SaveToFile( string filename )
{
try
{
using var fs = File.Open( filename, FileMode.Create );
Serialize( fs ); // Directly pass the FileStream to the Serialize method
return true; // If serialization completes without throwing an exception, return true
}
catch ( Exception )
{
return false; // Return false if an error occurs
}
}

/// <summary>
/// Loads binary manifest from a file and deserializes it.
/// </summary>
Expand Down

0 comments on commit 00fec82

Please sign in to comment.