libretro/RetroArch — pull request #986 by timostrunk (2014-09-12 17:26:43+00:00)
Title: Zip support and Fixes

In this pull request.
1.) Detect Core should work with compressed archives
2.) History should work with files loaded from compressed archive
3.) zipfiles should be supported.
4.) There is a new error message, if you try to load a zipped game when need_fullpath is on.

Change: Now whenever a file should be taken from a zipfile, it's path should look like this, there is no commandline flag anymore:
/path/to/myfile.7z#folder/game.img
Every file read by "read_file" can now be in a zip archive, if the path is formed like this.

POSSIBLE PROBLEMS!!
1.) I changed Makefile, Makefile.win and Makefile.emscripten. If HAVE_ZLIB and HAVE_COMPRESSION is set in the zipfile, the additional files decompress/zip_support.o and deps/rzlib/unzip.o need to be compiled in. This is different from the HAVE_7ZIP macro before, because HAVE_ZLIB already existed. It might therefore break other builds with HAVE_ZLIB unless these objects are added.

2.) Please review this commit:
https://github.com/timostrunk/RetroArch/commit/5b2edff6f0db0184730a8f20c660d3a73a7b2f6e
I removed .zip from the default extensions in the GUI

3.) Please review also this commit
https://github.com/timostrunk/RetroArch/commit/9e38cb4c930b3025ddac1fa2fefe6a8ccab03540
I did the same for core_info. Otherwise detect core wouldn't work with zip archives.