File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 19
19
<PrivateAssets >all</PrivateAssets >
20
20
</PackageReference >
21
21
<PackageReference Include =" MonoGame.Framework.WindowsDX" Version =" 3.8.0.1641" />
22
- <PackageReference Include =" SharpZipLib" Version =" 1.4.1" />
23
22
</ItemGroup >
24
23
</Project >
Original file line number Diff line number Diff line change 15
15
// You should have received a copy of the GNU General Public License
16
16
// along with Open Rails. If not, see <http://www.gnu.org/licenses/>.
17
17
18
- using ICSharpCode . SharpZipLib . Zip . Compression . Streams ;
19
18
using Microsoft . Xna . Framework ;
20
19
using System ;
21
20
using System . Collections . Generic ;
22
21
using System . Diagnostics ;
23
22
using System . IO ;
23
+ using System . IO . Compression ;
24
24
using System . Text ;
25
25
26
26
namespace Orts . Parsers . Msts
@@ -60,7 +60,9 @@ public static SBR Open(string filename)
60
60
// SIMISA@@ means uncompressed
61
61
if ( headerString . StartsWith ( "SIMISA@F" ) )
62
62
{
63
- fb = new InflaterInputStream ( fb ) ;
63
+ // Skip over the 2 byte zlib header and onto the DEFLATE stream itself
64
+ fb . Read ( buffer , 16 , 2 ) ;
65
+ fb = new DeflateStream ( fb , CompressionMode . Decompress ) ;
64
66
}
65
67
else if ( headerString . StartsWith ( "\r \n SIMISA" ) )
66
68
{
You can’t perform that action at this time.
0 commit comments