[adapters] 优化提示文案

This commit is contained in:
SmallMain
2024-10-25 16:15:09 +08:00
parent 9235a9068a
commit 181e0e1b4d
2 changed files with 3 additions and 3 deletions

View File

@@ -96,10 +96,10 @@ function checkAndModifyWorkerFiles() {
if (result.CC_WORKER_ASSET_PIPELINE || result.CC_WORKER_AUDIO_SYSTEM) {
// 没有 Worker 目录与配置的话提醒用户重新安装
if (!(gameJson.workers && fs.existsSync(workerDir))) {
Editor.error("你启用了社区版的多线程特性,但未检测到正确的 workers 目录与 game.json 字段,请重新安装社区版,详情请查看文档:TODO");
Editor.error("你启用了社区版的多线程特性,但未检测到正确的 workers 目录与 game.json 字段,请重新安装社区版,详情请查看文档:https://smallmain.github.io/cocos-enhance-kit/docs/user-guide/multithread/thread-intro#%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9");
}
} else {
Editor.warn("你禁用了社区版的多线程特性,可以手动删除相关文件以减少包体大小,详情请查看文档:TODO");
Editor.warn("你禁用了社区版的多线程特性,可以手动删除相关文件以减少微信小游戏的包体大小,详情请查看文档:https://smallmain.github.io/cocos-enhance-kit/docs/user-guide/multithread/thread-intro#%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9");
}
}
}