mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Support ancient .NET in FileTypes
This commit is contained in:
@@ -60,7 +60,11 @@ namespace SabreTools.FileTypes.CHD
|
||||
{
|
||||
CHDFileV1 chd = new();
|
||||
|
||||
#if NET20 || NET35 || NET40
|
||||
using (BinaryReader br = new(stream, Encoding.Default))
|
||||
#else
|
||||
using (BinaryReader br = new(stream, Encoding.Default, true))
|
||||
#endif
|
||||
{
|
||||
chd.tag = br.ReadChars(8);
|
||||
chd.length = br.ReadUInt32BigEndian();
|
||||
|
||||
Reference in New Issue
Block a user