MCPcopy Create free account
hub / github.com/Garten/sourcecraft / getSteamPath

Method getSteamPath

src/main/Steam.java:31–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()) {

Callers 1

initSetupMethod · 0.95

Calls 4

isSteamPathMethod · 0.95
guessSteamPathMethod · 0.95
logMethod · 0.95
setSteamPathMethod · 0.80

Tested by

no test coverage detected