C7-Game / Prototype

An early-stage, open-source 4X strategy game
https://c7-game.github.io/
MIT License
33 stars 9 forks source link

Remember Civ3 Install Location When Set Manually #382

Closed QuintillusCFC closed 1 year ago

QuintillusCFC commented 1 year ago

While setting up C7 on my new laptop, I realized that if you set the Civ3 location with the button, it doesn't remember it when re-launched. You have to have set Civ3_Home (or have it in the Windows registry) for it to stick.

We should have it remember. Since setting environment variables tends to require administrator privileges, this is likely via setting it in a config file and then checking that config file.

Side note: I have realized that at least with the Steam version, you have to run Civ3 after installing it for it to show up in the registry. This makes it slightly more likely to happen on Windows, although this will still mostly benefit non-Windows systems.