mirror of
https://github.com/Shu-Ying/noname-shuying.git
synced 2026-10-18 21:30:01 +08:00
fixed # 修复手机端地图滑动异常的问题
fixed # 重构更新框架,支持选择是否下载梦三模式 fixed # 补充部分意图的资源图片与逻辑
This commit is contained in:
+16
-3
@@ -250,9 +250,22 @@ shuYing.precontent = async () => {
|
||||
shuYing.initCSS();
|
||||
shuYing.initFunction();
|
||||
shuYing.initConfig();
|
||||
const registerMengsan = await shuYing.loadModule("./mengsan/register.js", "梦三模式", true);
|
||||
if (typeof registerMengsan == "function") {
|
||||
registerMengsan();
|
||||
const mengsanState = lib.config.shuYing_mengsan_installed_version;
|
||||
let hasMengsan = !!mengsanState && mengsanState != "disabled";
|
||||
if (!mengsanState && typeof game.checkFile != "function") {
|
||||
hasMengsan = true;
|
||||
}
|
||||
else if (!mengsanState && typeof game.checkFile == "function") {
|
||||
hasMengsan = await new Promise(resolve => {
|
||||
game.checkFile("extension/术樱包/mengsan/register.js",
|
||||
result => resolve(result == 1), () => resolve(false));
|
||||
});
|
||||
}
|
||||
if (hasMengsan) {
|
||||
const registerMengsan = await shuYing.loadModule(
|
||||
"./mengsan/register.js", "梦三模式", true
|
||||
);
|
||||
if (typeof registerMengsan == "function") registerMengsan();
|
||||
}
|
||||
initShuYingMenu({ lib, game, ui, shuYing, updater });
|
||||
shuYing.getVersion();
|
||||
|
||||
Reference in New Issue
Block a user