()
| 29 | private static final String[] POTENTIAL_STEAM_PATH_PARENTS = { "Program Files", "Program Files (x86)", "Programs", "Programme" }; |
| 30 | |
| 31 | public static File getSteamPath() { |
| 32 | File steamPath = Periphery.CONFIG.getSteamPath(); |
| 33 | if (!isSteamPath(steamPath)) { |
| 34 | File potentialPath = guessSteamPath(); |
| 35 | if (potentialPath != null) { |
| 36 | Loggger.log("guessed steam path: " + potentialPath); |
| 37 | steamPath = potentialPath; |
| 38 | } |
| 39 | Periphery.CONFIG.setSteamPath(steamPath); |
| 40 | } |
| 41 | return steamPath; |
| 42 | } |
| 43 | |
| 44 | private static File guessSteamPath() { |
| 45 | if (Main.isUnix()) { |
no test coverage detected