File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 154154 return null ;
155155 }
156156
157+ var fmt = "uncknown" ;
158+ if ( getChar ( curr ) == 'Z' && getChar ( curr + 1 ) == 'L' && getCode ( curr + 2 ) == JSROOT . IO . Z_DEFLATED ) fmt = "new" ; else
159+ if ( getChar ( curr ) == 'C' && getChar ( curr + 1 ) == 'S' && getCode ( curr + 2 ) == JSROOT . IO . Z_DEFLATED ) fmt = "old" ; else
160+ if ( getChar ( curr ) == 'X' && getChar ( curr + 1 ) == 'Z' ) fmt = "LZMA" ;
161+
157162 /* C H E C K H E A D E R */
158- if ( ! ( ( getChar ( curr ) == 'Z' && getChar ( curr + 1 ) == 'L' && getCode ( curr + 2 ) == JSROOT . IO . Z_DEFLATED ) ) ) {
159- if ( ! noalert ) alert ( "R__unzip: Old zlib format is not supported!" ) ;
163+ if ( fmt ! == "new" ) {
164+ if ( ! noalert ) alert ( "R__unzip: " + fmt + " zlib format is not supported!") ;
160165 return null ;
161166 }
162167
You can’t perform that action at this time.
0 commit comments