(File path)
| 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)); |
no test coverage detected