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

Method getGamePath

src/periphery/SourceGame.java:60–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 public String getGamePath() {
61 if (this.gamePath != null) {
62 File f = new File(this.gamePath);
63 if (f.exists()) {
64 return this.gamePath;
65 }
66 }
67 String path = Periphery.CONFIG.getSteamPath() + File.separator + Steam.STEAM_GAME_PATH() + File.separator + Steam.STEAM_SDK_PATH + File.separator
68 + this.getShortName() + File.separator + Steam.STEAM_MAP_SRC_PATH;
69 Loggger.log(path);
70 return path;
71 }
72
73 public String getGameHammerPath(Config config) {
74 String path = config.getSteamPath() + File.separator + Steam.STEAM_GAME_PATH() + File.separator + this.nameLong + File.separator + "bin"

Callers 1

getGamePathStringMethod · 0.80

Calls 4

STEAM_GAME_PATHMethod · 0.95
getShortNameMethod · 0.95
logMethod · 0.95
getSteamPathMethod · 0.45

Tested by

no test coverage detected