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

Method isSteamPath

src/main/Steam.java:62–76  ·  view source on GitHub ↗
(File path)

Source from the content-addressed store, hash-verified

60 }
61
62 public static boolean isSteamPath(File path) {
63 if (path == null) {
64 return false;
65 }
66 if (!path.exists() || !path.isDirectory() || !path.getName()
67 .toLowerCase()
68 .equals(STEAM_NAME.toLowerCase())) {
69 return false;
70 }
71 File gamePath = new File(path.toString() + File.separator + STEAM_GAME_PATH());
72 if (!gamePath.exists() || !gamePath.isDirectory()) {
73 return false;
74 }
75 return true;
76 }
77
78 public static boolean isGameInstalled(SourceGame game) {
79 File hammer = new File(getHammerPath(game));

Callers 3

updateDisplayForSteamMethod · 0.95
getSteamPathMethod · 0.95
guessSteamPathMethod · 0.95

Calls 4

STEAM_GAME_PATHMethod · 0.95
equalsMethod · 0.45
getNameMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected