narrowtux / SmartModInserter

Manages mods for factorio
GNU Lesser General Public License v3.0
38 stars 12 forks source link

Auto detect windows factorio application path #16

Closed dbjorge closed 5 years ago

dbjorge commented 8 years ago

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):

dbjorge commented 5 years ago

Repo seems dead/obsolete; abandoning PR