fixed # 修复手机端地图滑动异常的问题

fixed # 重构更新框架,支持选择是否下载梦三模式
fixed # 补充部分意图的资源图片与逻辑
This commit is contained in:
2026-09-29 17:44:21 +08:00
parent c9c09582c1
commit dd562ae627
32 changed files with 1156 additions and 135 deletions
+16 -3
View File
@@ -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();