Loading content from zip archives

Loading content from zip archives

Rate This
  • Comments 2

Nick Gravelyn has posted some code for embedding XNA content in zip archives. Not only does this provide compression for your asset data, but it also reduces clutter, replacing many .xnb files with a single .zip.

He uses a custom MSBuild task (in a similar vein to what I described in my previous post) to create the archive as part of the regular build process, and then derives a new runtime class from ContentManager, overriding the OpenStream method to implement the decompression.

Very cool!

Page 1 of 1 (2 items)
Leave a Comment
  • Please add 7 and 8 and type the answer here:
  • Post