Quasar
Moderator

Posts: 5139
Registered: 08-00 |
fraggle said:
Well, a couple of points here: first, if you configure DOOMWADPATH with an ambiguous configuration, you get what you deserve. Garbage in, garbage out so to speak. Secondly, this is exactly the same problem that already exists with the PATH variable: "if someone has 5 xyzzy.exe files on their PATH, which one is the one they want to use?" The traditional one is to use the first found in the list.
Esselfortium actually brings up a really good idea here: a graphical tool to configure IWAD paths would be very useful to users. But what I'd suggest is that this be implemented as an editor for DOOMWADPATH. You could quite easily write a program that parses DOOMWADPATH, finds all IWADs and allows the user to add new paths. On Windows I believe the default environment variables are saved in the registry somewhere, so it should just be a matter of updating that registry key.
You're still not allowing people to use multiple files that are named the same. As a port author I regularly test my code against all versions of DOOM, including shareware, registered, and retail. I don't believe I should be required to change the DOOMWADPATH to do that, or to rename the files from their original names either.
EE already supports DOOMWADPATH and *will* "guess" which doom.wad to use if you, for example, use "-iwad doom.wad" and it cannot first be found in the configuration file settings or in a higher priority IWAD location, such as in the current working directory, EXE directory, etc.
I simply do not consider a list of paths a suitable solution in place of an unambiguous pointer to specific files. They are two different things that have two different purposes.
|