Helion-Engine / Helion

A modern fast paced Doom FPS engine
GNU General Public License v3.0
86 stars 9 forks source link

[Feature Request] add -savedir arg #563

Closed 72hr closed 4 months ago

72hr commented 4 months ago

GZDoom has a -savedir arg to specify where save games are stored, similarly DSDA has a -save arg. I like to use this in tandem with a launcher to keep save games next to WADs.

I gave it a shot, if this is in scope: https://github.com/72hr/Helion/tree/savedir, I don't love storing the save dir in SaveGame but I couldn't think of a good way to avoid it without moving parts of the loading/saving code into SaveGameManager

nstlaurent commented 4 months ago

It looks ok to me. You can make a pull request for this. The only thing I would say is that the SaveGameManager should take the save directory as a parameter instead of CommandLineArgs.