mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Solved CDRWin plugin not working on .NET Framework and in Mono
4.0. Seems a bug in the framework implementation nonetheless, this workarounds satisfactorily.
This commit is contained in:
@@ -457,7 +457,14 @@ namespace DiscImageChef.ImagePlugins
|
||||
cuetracks = new CDRWinTrack[track_count];
|
||||
|
||||
line = 0;
|
||||
cueStream.BaseStream.Seek(0, SeekOrigin.Begin);
|
||||
// Mono <= 3.5 allowed this to work, with .Peek() NOT returning EOF.
|
||||
// However .NET framework has always returned EOF even with this rewind.
|
||||
// Mono 4.0 copied their bug (feature?)
|
||||
//cueStream.BaseStream.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
// Forcing me to do
|
||||
cueStream.Close();
|
||||
cueStream = new StreamReader(imagePath);
|
||||
|
||||
while (cueStream.Peek() >= 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user