You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/apps
AnyOldName3 c2b383ea92 Store original representation of paths in content lists
Also compare against existing content lists in a more forgiving way.

The first improvement makes it possible to use relative paths in openmw.cfg without the launcher canonicalising them.
This was really annoying if you used a relative path on purpose.
It also stops the launcher converting all paths to Qt's convention, where forward slashes are used on Windows even though they're not native.
The engine doesn't care, so you could always put either in the config file, but the launcher wouldn't stand for that, and would make them match.

To make this work, we need to store a path's originalRepresentation in the content list, compare paths loaded from openmw.cfg based on their originalRepresentation, and convert paths from originalRepresentation to absolute value when loading them from a content list.

The second improvement means that paths that are equivalent, but expressed differently (e.g. mismatched case on Windows, mismatched separators on Windows, or mild differences like unnecessary `./`es and doubled separators) don't trigger the creation of a new effectively-identical content list.

To make this work, we had to switch the comparison to lexicaly normalise the path first.
It could only be lexical normalisation as originalRepresentation might be absolute, relative, or absolute-but-based-on-a-path-slug, and we didn't want slugs to break things or relative paths to count as equivalent to absolute ones that refer to the same file.
The comparison is case-insensitive on Windows, and case-sensitive elsewhere.
This isn't strictly right, as you can have case-sensitive things mounted on Windows or tell a Linux directory to be case-insensitive, but we can't tell when that might happen based on a lexical path as it depends on real directory properties (and might differ for different parts of the path, which is too much hassle to support).
2 months ago
..
benchmarks Fix benchmark warning: -Wdeprecated-declarations 10 months ago
bsatool Modernise Boost CMake stuff 4 months ago
bulletobjecttool Modernise Boost CMake stuff 4 months ago
components_tests Merge branch 'unloadedcontainers' into 'master' 2 months ago
esmtool Modernise Boost CMake stuff 4 months ago
essimporter Modernise Boost CMake stuff 4 months ago
launcher Store original representation of paths in content lists 2 months ago
mwiniimporter Remove vestigial Boost libraries 4 months ago
navmeshtool Use normalized path in BulletShapeManager 3 months ago
niftest niftest: parse BTO, BTR, RDT and PSA files 3 months ago
opencs Write SoundGens after their creatures 2 months ago
opencs_tests Support custom log level in tests 6 months ago
openmw Merge branch 'passivestorage' into 'master' 2 months ago
openmw_tests Add tests for MWWorld::Ptr 4 months ago
wizard Remove old dependency on Xt which shouldn't be needed anymore 2 months ago
doc.hpp