wouldn't it make more sense to make decompressing data an option when opening the file, Patiga? since you usually know ahead of time whether you're gonna need it or not, and if you need it probably prefer it not being loaded on demand
minus you usually only need very specific data. one script of mine for example only needs the game layer, another the images. the idea was that you usually load the specific data you require right after opening the file. you can also just call load on the entire map struct to load everything