Added an alternate location to automatically find SteamApps/ on linux

This commit is contained in:
Vhati 2015-08-27 16:16:35 -04:00
parent f783a7e177
commit 16df3ba832
3 changed files with 3 additions and 0 deletions

View file

@ -16,6 +16,7 @@
"hidden" : "true", "hidden" : "true",
"changes" : [ "changes" : [
"Added a config option to launch FTL via Steam, if possible" "Added a config option to launch FTL via Steam, if possible"
"Added an alternate location to automatically find SteamApps/ on linux"
] ]
}, },
{ {

View file

@ -2,6 +2,7 @@ Changelog
1.7: 1.7:
- Added a config option to launch FTL via Steam, if possible - Added a config option to launch FTL via Steam, if possible
- Added an alternate location to automatically find SteamApps/ on linux
1.6: 1.6:
- Fixed modorder not being saved properly - Fixed modorder not being saved properly

View file

@ -48,6 +48,7 @@ public class FTLUtilities {
new File( new File(""+System.getenv("ProgramFiles")), humblePath ), new File( new File(""+System.getenv("ProgramFiles")), humblePath ),
// Linux - Steam // Linux - Steam
new File( xdgDataHome +"/Steam/SteamApps/common/FTL Faster Than Light/data/resources" ), new File( xdgDataHome +"/Steam/SteamApps/common/FTL Faster Than Light/data/resources" ),
new File( xdgDataHome +"/.steam/steam/SteamApps/common/FTL Faster Than Light/data/resources" ),
// OSX - Steam // OSX - Steam
new File( System.getProperty("user.home") +"/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/FTL.app/Contents/Resources" ), new File( System.getProperty("user.home") +"/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/FTL.app/Contents/Resources" ),
// OSX // OSX