mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
Fix being unable to extract default.zip with some programs.
This commit is contained in:
parent
e5b77528ff
commit
40bd1fe499
@ -57,6 +57,8 @@ namespace Launcher {
|
|||||||
void ProcessZipEntry_Classic( string filename, byte[] data, ZipEntry entry ) {
|
void ProcessZipEntry_Classic( string filename, byte[] data, ZipEntry entry ) {
|
||||||
if( writer.entries == null )
|
if( writer.entries == null )
|
||||||
writer.entries = new ZipEntry[reader.entries.Length];
|
writer.entries = new ZipEntry[reader.entries.Length];
|
||||||
|
if( !filename.EndsWith( ".png", comp ) ) return;
|
||||||
|
|
||||||
if( filename != "terrain.png" ) {
|
if( filename != "terrain.png" ) {
|
||||||
int lastSlash = filename.LastIndexOf( '/' );
|
int lastSlash = filename.LastIndexOf( '/' );
|
||||||
if( lastSlash >= 0 )
|
if( lastSlash >= 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user