briankendall/devreorder

feature request: custom path for config file

amir-arad opened this issue · 3 comments

Hi
I'm using devreorder as part of my LAN setup. for managability purposes, I'd like to be able to set a custom parameter for devreorder for the configuration file location.
so instead of running mygame.exe I could run mygame.exe --devreorder_path="C:\My Folder\devreorder123.ini"
or, using an environment variable perhaps:

set devreorder_path=C:\My Folder\devreorder123.ini
mygame.exe

and have devreorder load its configuration from C:\My Folder\devreorder123.ini instead of the working directory / ProgramData etc.

is this possible?

Yes, it's possible, and I think it's a good idea, but it would require making a change to devreorder. In the meantime, is it possible for you to create a symlink at C:\ProgramData\devreorder\devreorder.ini that points to the ini file you want to use?

not really. my use case is running two game instances on the same machine, each with its own config file.

Have you tried putting devreorder.ini in the same folder as the game's exe? It will look for config files in the directory of the running exe first, which is how it's intended to allow different configs for each game.