1ed74bdac453 — Laurens Holst 4 years ago
COM: Update gunzip and include Adler32 check in compilation.
3 files changed, 3 insertions(+), 2 deletions(-)

M .hgsubstate
M src/COM.asm
M src/PNG.asm
M .hgsubstate +1 -1
@@ 1,2 1,2 @@ 
-dcc2a9695290836e7387d0946941d237dd6d6877 lib/gunzip
+5153e796c57baacdf35351b420a8c292caa96261 lib/gunzip
 a23b96c54f563c7e126bac215888f9b79c050104 lib/neonlib

          
M src/COM.asm +1 -0
@@ 7,6 7,7 @@ 
 	INCLUDE "Macros.asm"
 
 DEBUG: equ 1
+ZLIB_ADLER32: equ 1
 
 HEAP: equ 0C000H
 HEAP_SIZE: equ 1580H

          
M src/PNG.asm +1 -1
@@ 463,7 463,7 @@ PNG_Decompress:
 	ld d,ixh
 	ex (sp),ix  ; sp = this, reader, ix = this
 	push ix
-	ld a,-1
+	ld a,ZLIB_ADLER32 ? -1 : 0
 	call ZlibArchive_class.New
 	call ZlibArchive_Construct
 	ex (sp),ix  ; sp = this, reader, zlibarchive, ix = this