Project

General

Profile

« Previous | Next » 

Revision 80a3ddfe

Added by danij almost 13 years ago

Implemented percent-encoding of lump, texture and material paths

The Wad format allows characters in lump names not generally allowed
for file and/or directory names on the local file system, including
those used as path delimiters.

To normalize these into a unified path representation, WadFile now
applies percent encoding of lump names upon construction of its
internal PathDirectory.

As the lump names are interpreted into symbolic texture (and thus
material) identifiers, those too are now percent-encoded. Also, by
extension, this now means serialized de::Uris are encoded also (e.g.,
in MaterialArchive).

Various new methods of de::String have been implemented to support
encoding/decoding of this new representation.

Todo: de::Uri should not be ignorant to the encoding. This class
should instead implement the necessary methods to support directly
constructing from and composing to the encoded representation.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences