It is used in LoadExecAction right before rebooting. I _think_ it unpacks a fresh kernel image.
(LoadExecAction is the meat of the LoadExecBody worker thread started by sceKernelLoadExecThread, which does the work of the well known sceKernelLoadExec :)
Well while you don't see it most prx files are gzip compressed inside, you can actually extract some of the compressed versions of some of the kernel modules by throwing them in sceKernelCheckPspConfig. There are other place it is used no doubt.
Strangely enough though the only modules which directly import the function are releated to the ME boot strap so it is really just there for fun :)
I have been working on the compression libs for the psp and will post something tonight of what i have gotten done :) DUnno how useful it is but at least a few more functions will have been defined with parameters.
skippy911 wrote:I have been working on the compression libs for the psp and will post something tonight of what i have gotten done :) DUnno how useful it is but at least a few more functions will have been defined with parameters.
Just so folks are aware, zlib is in the psp Subversion repo.
uchar out[100*100];
uchar in[100*100];
int output;
output = sceGzipDecompress(out, 10000, in, 0);
Basically it works just like regular opening of a gzip file so you have an array of data which is held in the out array. I dont have a working example but this should work just fine. I based the function params off of zlib example i found for vb. Enjoy :D