~widelands-dev/widelands/cricket_frog_sounds

Viewing all changes in revision 7711.

  • Committer: Wideland's Bunnybot
  • Date: 2016-01-18 22:02:52 UTC
  • mfrom: (7709.2.1 fix_zip_filesystem)
  • Revision ID: bunnybot@widelands.org-20160118220252-8oi8x87tgbn2on5c
Merged lp:~widelands-dev/widelands/fix_zip_filesystem:
Use std::shared_ptr to properly share zip files between classes.

ZipFilesystem, any child filesystems created by make_sub_file_system, and any ZipStream[Write|Read] created from such a filesystem access the same physical zip file and corresponding state. If one wrote while the other read, the outcome was undefined.

This changes the code to move the zip file abstraction into a wrapper class that properly reopens files for the correct access. 

This also get's rid of the improper (and deprecated) use of the implicit copy constructor - the state was copied, but not properly shared before.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: