<div class="gmail_quote">On Mon, Jun 28, 2010 at 11:40 PM, Robert Špalek <span dir="ltr"><<a href="mailto:rspalek@gmail.com">rspalek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="gmail_quote"><div class="im">On Mon, Jun 28, 2010 at 3:51 PM, Robert Špalek <span dir="ltr"><<a href="mailto:rspalek@gmail.com" target="_blank">rspalek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>On Mon, Jun 28, 2010 at 2:37 PM, Max Horn <span dir="ltr"><<a href="mailto:max@quendi.de" target="_blank">max@quendi.de</a>></span> wrote:<br></div><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



True, but somebody *g* could rewrite it to support uncompressed archives when zlib is not available.<br><br></blockquote></div><div>I will look at it.  it should be very simple, (in theory) essentially moving the #ifdef's from the top level into inside of the functions.</div>



</div><div><div></div><div><br></div></div></blockquote></div><div>done.  if you don't like some of my changes, feel free to tell me and I'd be happy to fix it. </div></div></blockquote><div><br></div><div>I have tested ScummVM with disabled zlib and it works fine except for loading and saving games.  the latter doesn't work, because the usage of compression is hard-coded into backends/saves/default/default-saves.cpp's methods openFor{Loading,Saving}(), which unconditionally use Common::wrapCompressed{Read,Write}Stream() without fallback.  as a result of that, ScummVM cannot load or save games when zlib is not linked in.</div>

<div><br></div><div>shall I add a test there and use raw uncompressed streams when zlib is not available?  this should only make things better, because on such installations loading/saving could never have worked in the first place.  the only problem I see is when someone copies an uncompressed savegame to a different installation, where it is attempted to be loaded with decompression.  if we wanna address compatibility of savegames with different compression modes, then we have a little problem, because we would have to depend on reliable testing whether a given input stream is compressed or not.</div>

<div><br></div></div>-- <br>Robert Špalek <<a href="mailto:rspalek@gmail.com">rspalek@gmail.com</a>><br>