View Single Post
Old 04-27-2018, 05:01 PM   #23
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by geek1011 View Post
Also, can someone who knows about the internals of the CSS patches like @oren64 or @GeoffR tell me a bit about how to extract it? I've been getting stuck on properly finding the right Zlib streams.
I'm not sure whether I'm answering the right question here but ...

Currently the initial CSS extract is done using pipcat's Python extract.py which calls css_streams.py. If you haven't already you can find all the code in this thread. Personally, I use his v3 code in post #8 (rather than v4 which also accommodates those who need tshering's Mods for Bad Eyes).

css_streams.py is where you'll find the extract algorithms but be aware that it has a small bug which will miss consecutive nozlib CSS streams if the second one starts immediately after the first. It's easily fixed by finding the line
Code:
pos += 4 + len_stream
and changing it to
Code:
pos += 3 + len_stream
jackie_w is offline   Reply With Quote