Option to not create ~/DuckGame - #73
Conversation
|
You have a good point, but this project's goal is to build on top of legacy code and remove as little as possible from the original game, so this doesn't really align with the project's goal. Thanks for the effort in any case |
|
The code in question for anyone it has run for before only runs DirectoryExists and File.Exists. |
|
Okay, so would it be fine if I add a "-dontCreateOldDir" flag, or something like that, which would be optional, so it theoretically shouldn't break anything unless people opt-in. Because as currently that code will ensure you always have a useless ~/DuckGame folder at all times, as it gets triggered regardless of if the new directory already exists or not, which is quite annoying. |
|
Sure, that would work actually. |
It has been over 5 years since the location changed, there's no reason to keep creating this directory.
|
Damn that took me long to get to this. Reworked it to disable ~/DuckGame creation if a file named "my_save_is_here" exists in the new location. I think it's better than arguments or environment variables, because it migrates with the game files, and it's easier and more convenient than cli arguments. |
It has been over 5 years since the location changed, there's no reason to keep creating this directory.