diff --git a/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java b/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java index ff9a2fb..2cfc780 100644 --- a/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java +++ b/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java @@ -146,6 +146,10 @@ public class PBOUtil { return wordItems; List files = new ArrayList<>(FileUtils.listFiles(file, FILE_NAME_LIST, true)); + List names = files.stream().map(File::getName).toList(); + if(names.contains("config.bin") && names.contains("config.cpp")) { + files = files.stream().filter(item -> "config.cpp".equals(item.getName())).toList(); + } for (File item : files) { wordItems.addAll(findWordByFile(item)); }