mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Perform mass cleanup
This is cleanup based on both new .NET functionality (in 6 and 7) as well as a ton of simplifications and things that were missed that were caught due to the cleanup.
This commit is contained in:
@@ -59,9 +59,9 @@ namespace SabreTools.FileTypes.CHD
|
||||
/// </summary>
|
||||
public static CHDFileV2 Deserialize(Stream stream)
|
||||
{
|
||||
CHDFileV2 chd = new CHDFileV2();
|
||||
CHDFileV2 chd = new();
|
||||
|
||||
using (BinaryReader br = new BinaryReader(stream, Encoding.Default, true))
|
||||
using (BinaryReader br = new(stream, Encoding.Default, true))
|
||||
{
|
||||
chd.tag = br.ReadChars(8);
|
||||
chd.length = br.ReadUInt32BigEndian();
|
||||
|
||||
Reference in New Issue
Block a user