Decompressing zip / gzip files

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Clavus
Prole
Posts: 28
Joined: Wed Jan 27, 2010 12:45 pm

Decompressing zip / gzip files

Post by Clavus »

I'm compressing some of my game content to greatly reduce the size of my project (in .zip or .gz files). However, I'm wondering how I can decompress it during runtime. Can you guys recommend a method? Preferably with as few dependencies as possible.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Decompressing zip / gzip files

Post by kikito »

.love files are already compressed in a zip format. The decompression is done transparently.

Putting a zip file inside a .love file will not make it any smaller (in fact, it will make it slightly larger).
When I write def I mean function.
User avatar
Clavus
Prole
Posts: 28
Joined: Wed Jan 27, 2010 12:45 pm

Re: Decompressing zip / gzip files

Post by Clavus »

But what in the case of external resources?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests