Closed Vorschreibung closed 1 day ago
Ready for review :blush:
Thanks for the review!
Is it optimal place to fix this? Possibly there are other uses of
vfsLoadFile
potentially providing wrong slashes? Can just fix there once and for everyone, slashes fixing is done there in most cases anyway
Yeah indeed, AFAIS AssModel *LoadModel
doesn't go through vfsLoadFile
atm. but instead uses Importer::ReadFile
from libs/assimp
.
I guess Importer::ReadFile
could make use of vfsLoadFile
?
Thanks for the review!
Is it optimal place to fix this? Possibly there are other uses of
vfsLoadFile
potentially providing wrong slashes? Can just fix there once and for everyone, slashes fixing is done there in most cases anyway https://github.com/Garux/netradiant-custom/blob/3acacb884ea961ccc4eccf79530756f727671694/tools/quake3/common/vfs.cpp#L302Yeah indeed, AFAIS
AssModel *LoadModel
doesn't go throughvfsLoadFile
atm. but instead usesImporter::ReadFile
fromlibs/assimp
.I guess
Importer::ReadFile
could make use ofvfsLoadFile
?
@Garux I have an alternative PR here: https://github.com/Garux/netradiant-custom/pull/202 - please let me know if you prefer this approach
@Garux I have an alternative PR here: #202 - please let me know if you prefer this approach
Without deep investigation i still like idea to fix this in vfsLoadFile
more than hardcoding set of keys, which may go out of sync.
This 7499ba6 shall fix it.
It did! Thanks :heart_hands:
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 applies some path canonicalization on q3map2's LoadModel to remedy this specific issue.