MantisBT - Doomseeker
View Issue Details
0000564Doomseeker[All Projects] Suggestionpublic2011-08-16 01:202018-09-29 14:49
AlexMax 
Blzut3 
normalmajorN/A
closedfixed 
 
0.8 Beta 
0000564: Odamex Plugin: Set -waddir to Wadseeker download directory
Right now, if you join an odamex server and it switches maps and the wad downloader kicks in, it will attempt to download wad files to the same place your IWAD is located. Sometimes, this is good, but other times it can end up someplace ridiculous like your steam directory.

Therefore, -waddir ought to be set to the same directory that WADSeeker downloads files to. If there is no download directory set, just do what you do now.
No tags attached.
Issue History
2011-08-16 01:20AlexMaxNew Issue
2011-08-17 06:24Blzut3Assigned To => Blzut3
2011-08-17 06:24Blzut3Statusnew => assigned
2011-08-17 06:26Blzut3Note Added: 0002126
2011-08-17 06:26Blzut3Statusassigned => feedback
2011-08-17 21:31AlexMaxNote Added: 0002128
2011-08-17 21:31AlexMaxStatusfeedback => assigned
2011-08-23 23:26Blzut3Statusassigned => resolved
2011-08-23 23:26Blzut3Fixed in Version => 0.8 Beta
2011-08-23 23:26Blzut3Resolutionopen => fixed
2018-09-29 14:49WubTheCaptainStatusresolved => closed

Notes
(0002126)
Blzut3   
2011-08-17 06:26   
Does Odamex have a proper way to set the download directory from the command line or is the first directory in -waddir always used?
(0002128)
AlexMax   
2011-08-17 21:31   
> Does Odamex have a proper way to set the download directory from the command line

No.

> or is the first directory in -waddir always used?

A quick look at cl_main.cpp reveals the following:

// Try to save to the wad paths in this order -- Hyper_Eye
D_AddSearchDir(dirs, Args.CheckValue("-waddir"), separator);
D_AddSearchDir(dirs, getenv("DOOMWADDIR"), separator);
D_AddSearchDir(dirs, getenv("DOOMWADPATH"), separator);
D_AddSearchDir(dirs, waddirs.cstring(), separator);

dirs is a vector of strings, and D_AddSearchDir is intelligent enough to split a string containing multiple directories. The separator character is ';' on Windows and ':' elsewhere. That should be enough information to answer that and several potential follow-up questions you might have. :)