hrydgard/ppsspp — pull request #281 by unknownbrackets (2012-12-29 02:25:29+00:00)
Title: Savestate tweaks (gzip, Windows cli/UI cleanup)

This does the following:
* Adds support for --state= to load right away (for debugging.) Didn't add to android since I can't test.
* Disables (in the Windows UI) save/load state when no game is loaded.
* Saves / loads states simply using `gzopen()` and friends.

Let me know if `File::IOFile` was the wrong place to change this, it makes it a bit more complicated but also more useful.

The performance impact of (de)compression is noticeable.

`gzopen()` has the property that it will open compressed and uncompressed files, so we could add an option to save either way very easily. Alternatively we could probably do the write in a separate thread (but that can't help read.) A manual gunzip works too to improve load speed while debugging.

That said, I think it's fine for now, assuming it's not really sluggish on phones.

-[Unknown]