-
Notifications
You must be signed in to change notification settings - Fork 0
Using --configdir doesn't prevent the creation of the default directory #2116
Comments
Buginator changed status from |
Buginator commented What version is this ? If you specify a configdir, then it will use that, and not "Warzone 2100 2.3"... With svn/2.3, I have it e:\wz\warzone2100-dbg.exe --configdir .\ --window and it works as it should. |
DylanDog commented The version is 2.3.X all of them. The system is windows XP. It is not working. I use "F:\Warzone2100\WZ.exe --configdir .\ --window --mod HM_AlphaCampaign.wz" and the folder "Warzone 2100 2.3" is created under the "My data" (In German -> Eigene Datei) anyway. The sub-folder "Warzone 2100 2.3\logs" is also create but NOT USED. I mean the log data and the saved games are all on the USB stick as it should but the folder on the PC is created anyway. |
i-NoD commented AFAIK its due to |
Buginator commented Replying to Warzone2100/old-trac-import#2116 (comment:3):
You got the patch handy i-NoD ? Nice to see you again :) |
i-NoD commented Hi Buginator, Nope, no patch for THIS problem, my 'fix' was for trunk 'Warzone 2100 2.3/logs' -> 'Warzone 2100 Trunk/logs'. This problem is a bit trickier, since log dir is created before the cmd line args are parsed in code... hmm, i don't really like it... but maybe we could use some global var to postpone creation till the moment of first actual use. Still if smth fatal will happen (i guess a lot can happen there) before arg-parser will be invoked then exception handler will simply puke from UAC protection, right? There should be some other way... |
dak180 changed status from |
dak180 changed resolution from `` to |
dak180 commented Pending is broken so set tickets to something else. |
dak180 changed status from |
dak180 changed resolution from |
cybersphinx changed status from |
cybersphinx changed resolution from `` to |
cybersphinx commented Should be fixed in 5506daef71feb4e3c513b2a35788da5b4858af61. |
cybersphinx changed resolution from |
cybersphinx changed status from |
cybersphinx commented ... or not, actually. Why do we use WZ_WRITEDIR for more than as default configdir anyway? Just move parseCommandLineEarly before setupExceptionHandler, and use configdir everywhere. |
vexed commented configdir works just fine, I use it all the time. Haven't tested datadir, but I thought it worked before... It is bad mojo to do anything before setting up the exception handler, that was why it was written like that, so it is still possible we crash before parseCommandLineEarly. |
cybersphinx changed title from |
cybersphinx commented Don't remember any crashes in parseCommandLineEarly, so I don't see the problem in doing that before setting up the exception handler. |
vexed changed status from |
vexed changed resolution from `` to |
vexed commented It was re-written to not write outside your config dir. |
resolution_fixed
type_bug
| by DylanDogI use to play and test mods from USB stick and to do this my shortcut looks like the following: "F:\Warzone2100\WZ.exe --configdir "F:\Warzone2100" --datadir "F:\Warzone2100" --window --mod_ca HM_AlphaCampaign.wz". The game starts form USB,and the games are also saved there, no problem. The issue I see is that a folder "Warzone 2100 2.3" is created anyway on the pc. This should not be the case. I do not like having this folder created on my pc at work...
Issue migrated from trac:2116 at 2022-04-16 06:33:38 -0700
The text was updated successfully, but these errors were encountered: