Garux / netradiant-custom

The open-source, cross-platform level editor for id Tech based games.
https://garux.github.io/NRC/
Other
300 stars 52 forks source link

fix q3map2 pathsep crossplat #202

Closed Vorschreibung closed 6 days ago

Vorschreibung commented 1 week ago

Radiant does some canonicalization on file paths, however 'q3map2' seems to lack some.

For example on Linux loading a '.map' with a model path that involves Windows path separators ('\') will show and render them fine in Radiant, however 'q3map2' will then fail to load them.

This commit adds a stage just right after parsing entities where known keys that are assumed to have paths as vals are cleaned.

Vorschreibung commented 1 week ago

Alternative approach to: https://github.com/Garux/netradiant-custom/pull/200

Ready for review :blush:

Vorschreibung commented 6 days ago

Obsoleted by https://github.com/Garux/netradiant-custom/commit/7499ba60ea112da01100b23a115d5205451c2731 - thanks @Garux :heart_hands:

Vorschreibung commented 6 days ago

G