MCPcopy Create free account
hub / github.com/OperationT00/T-Code / load

Method load

src/main/java/com/tcode/config/TCodeConfig.java:83–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 }
82
83 public static TCodeConfig load() {
84 if (Files.exists(CONFIG_FILE)) {
85 try {
86 return mapper.readValue(CONFIG_FILE.toFile(), TCodeConfig.class);
87 } catch (IOException e) {
88 System.err.println("⚠️ 配置文件读取失败,使用默认配置: " + e.getMessage());
89 }
90 }
91 return new TCodeConfig();
92 }
93
94 public void save() {
95 try {

Callers 3

startAndBlockMethod · 0.95
mainMethod · 0.95
configureHistoryMethod · 0.45

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected