[Gtkradiant] Texture path cleanup

Hydra gtkradiant@zerowing.idsoftware.com
Wed, 9 Jan 2002 18:55:16 -0000


Had a good look through the code that currently uses the texturepath
setting, it's been in need of a cleanup for a while now.  It seems that the
only place it's actually used is when you select "Textures\Load
Directory..." from the menus.

I had a bit of a tinker with the code, trying to get radiant to load
textures from *any* absolute path, but the code in
TexWindow.cpp/Texture_ShowDirectory( void ) adds /textures onto the path.
even with that
removed we still can't load textures from a given directory because
vfsGetListInternal() adds the path to each basedir (resulting in a path
like: d:\games\quake3\d:\games\quake3\wfa\textures) which is no good..

Also, on Win32 it also uses the GtkDialogs for opening a directory, which is
bleh.

Anyway, my question is, do we need "Textures\Load Directory..." when it only
lets you load directories that appear under the basepaths anyway when the
texture menu itself already provides this facility.

If not, shall I create a patch that removes the texturepath code ?

Dom / Hydra