Commit c7384a37 authored by fallenstardust's avatar fallenstardust

加载ypk里的pre-strings.conf

parent 6fbed2e6
......@@ -64,6 +64,7 @@ public interface Constants {
String CORE_STRING_PATH = "strings.conf";
String CORE_LIMIT_PATH = "lflist.conf";
String CORE_CUSTOM_LIMIT_PATH = "expansions/lflist.conf";
String CORE_CUSTOM_STRING_PATH = "pre-strings.conf";
String CORE_SYSTEM_PATH = "system.conf";
String CORE_BOT_CONF_PATH = "bot.conf";
String CORE_SOUND_PATH = "sound";
......
......@@ -63,7 +63,7 @@ public class StringManager implements Closeable {
Log.e("StringManager", "读取压缩包");
try {
ZipFile zipFile = new ZipFile(file.getAbsoluteFile());
ZipEntry entry = zipFile.getEntry(Constants.CORE_STRING_PATH);
ZipEntry entry = zipFile.getEntry(Constants.CORE_CUSTOM_STRING_PATH);
if (entry != null) {
res3 &= loadFile(zipFile.getInputStream(entry));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment