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:
@@ -1,3 +1,10 @@
|
|||||||
|
2015-05-23 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* ImagePlugins/CDRWin.cs:
|
||||||
|
Solved CDRWin plugin not working on .NET Framework and in
|
||||||
|
Mono 4.0. Seems a bug in the framework implementation
|
||||||
|
nonetheless, this workarounds satisfactorily.
|
||||||
|
|
||||||
2015-05-19 Natalia Portillo <claunia@claunia.com>
|
2015-05-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* Main.cs:
|
* Main.cs:
|
||||||
|
|||||||
@@ -457,7 +457,14 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
cuetracks = new CDRWinTrack[track_count];
|
cuetracks = new CDRWinTrack[track_count];
|
||||||
|
|
||||||
line = 0;
|
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)
|
while (cueStream.Peek() >= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user