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

Method getGame

src/periphery/Config.java:96–109  ·  view source on GitHub ↗
(String searchedName)

Source from the content-addressed store, hash-verified

94 }
95
96 public SourceGame getGame(String searchedName) {
97 SourceGame result = null;
98 Object[] gameArray = this.games.toArray();
99
100 int length = gameArray.length;
101 for (int i = 0; i < length; i++) {
102 SourceGame test = (SourceGame) gameArray[i];
103 String gameName = test.getLongName();
104 if (gameName.equals(searchedName)) {
105 result = test;
106 }
107 }
108 return result;
109 }
110
111 public String[] getConvertOptionNames() {
112 Object[] optionArray = this.options.toArray();

Callers 2

setConvertDataMethod · 0.45

Calls 2

getLongNameMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected