Adds logic that attempts to guess the Factorio application path on Windows using a similar priority order to the one currently used on Linux:
1) Looks in the Steam installation folder (as indicated by the registry) for x64 and then x86 installations
2) Looks in Program Files for an x64 non-steam installation
3) Looks in Program Files (x86) for an x86 non-steam installation
Note that this involves taking a new dependency (jna-platform, https://github.com/java-native-access/jna) for the native registry access required to identify the steam installation folder. JNA is well-maintained and apache licensed.
The following scenarios were tested:
Windows (Windows 10 Pro x64 10586.318):
Installed via Steam with a non-default Steam folder
Installed non-Steam (x64)
No installs (falls back to the settings window as before)
No installs with no Steam installation and no PROGRAMFILES(X86) (falls back to settings window, does not throw)
Adds logic that attempts to guess the Factorio application path on Windows using a similar priority order to the one currently used on Linux:
1) Looks in the Steam installation folder (as indicated by the registry) for x64 and then x86 installations 2) Looks in Program Files for an x64 non-steam installation 3) Looks in Program Files (x86) for an x86 non-steam installation
Note that this involves taking a new dependency (jna-platform, https://github.com/java-native-access/jna) for the native registry access required to identify the steam installation folder. JNA is well-maintained and apache licensed.
The following scenarios were tested: Windows (Windows 10 Pro x64 10586.318):