Jump to content

Recommended Posts

Posted

I'm quoting this post from RevoGirl blog

 

AppleHDA for Mountain Lion DP3


April 19, 2012 by RevoGirl


Good news. I committed an updated version of my AppleHDA patching script. Which is now available from my Github repository. Go get it and give it a try.


Please be so kind to let me know if it is working for you.


Thank you.


p.s. Yeah yeah yea. The resource files (XML) are now compressed – another step forward to speed up the boot process – with zlib. Whatever. Have a look here:

http://opensource.apple.com/source/xnu/xnu-1699.24.8/libkern/zlib/

and

http://en.wikipedia.org/wiki/Zlib


FYI; These functions:

	AppleHDADriver::layoutLoadHandler(void  const*,uint)
AppleHDADriver::platformLoadHandler(void  const*,uint)

call _uncompress aka

	int uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)

 

Update

I have a Perl script to inflate and deflate the resource files, which I will add to my dropbox account a.s.a.p. And done!


Download zlib.pl.zip and let me know what you think. Have fun with it ;)


Usage

You can inflate (decompress) a file with:

	perl zlib.pl inflate layout99.xml.zlib > layout99.xml

And you can deflate (compress) a file with:

	perl zlib.pl deflate layout99.xml > layout99.xml.zlib

zlib.pl.zip

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...