MCPcopy Create free account
hub / github.com/e2wugui/zeze / LoadConfig

Method LoadConfig

ZezeJava/ZezexJava/server/src/Game/App.java:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 private static LoadConfig LoadConfig() {
42 try {
43 byte[] bytes = Files.readAllBytes(Paths.get("linkd.json"));
44 return new JsonReader().buf(bytes).parse(LoadConfig.class);
45 // return new ObjectMapper().readValue(bytes, LoadConfig.class);
46 } catch (Exception e) {
47 // e.printStackTrace();
48 }
49 return new LoadConfig();
50 }
51
52 public void Start(String[] args) throws Exception {
53 int serverId = -1;

Callers 1

StartMethod · 0.95

Calls 3

bufMethod · 0.80
getMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected