Simple Zip functions

BlitzMax Forums/BlitzMax Programming/Simple Zip functions

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm totally missing the mark here. Anyone know why this doesn't work? I don't want to use an existing lib I just want a simple one with minimal functionality.

Local zip:TStream = ReadZip("media.zip")
image1 = LoadImage("zip::test.png")
CloseZip(zip)

Function ReadZip:TStream(zfolder$)
	Local stream:TStream
	stream = OpenStream(zfolder)
	Return stream
End Function

Function CloseZip(zstream:TStream)
	CloseStream(zstream)
End Function