更新提示bugfix+素材检测bugfix

This commit is contained in:
mengxinzxz 2024-04-18 20:14:28 +08:00
parent 971b6c16b3
commit b025e487e4
1 changed files with 2 additions and 2 deletions

View File

@ -349,7 +349,7 @@ export const otherMenu = function (/** @type { boolean | undefined } */ connectM
}
}
const str =
versionResult > 0
versionResult < 0
? `有新版本${description.name}可用,是否下载?`
: `本地版本${lib.version}高于或等于github版本${description.name},是否强制下载?`;
const str2 = description.body;
@ -454,7 +454,7 @@ export const otherMenu = function (/** @type { boolean | undefined } */ connectM
const result = await asyncFilter(files.flat(), async v => {
return game.promises.readFile(v.path).then(data => {
return v.size != data.byteLength;
})
}).catch(()=>true)
}).then(arr => arr.map((v) => v.path));
console.log("需要更新的文件有:", result);