[adapters] 修正名称

This commit is contained in:
SmallMain 2024-10-24 20:06:13 +08:00
parent 1a097e70d8
commit 9235a9068a
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
module.exports = { module.exports = {
'settingsmenuname': '增强包设置...', 'settingsmenuname': '社区版设置...',
'settings_title': '增强包设置', 'settings_title': '社区版设置',
}; };

View File

@ -32,9 +32,9 @@ function getSettings() {
const isUninstalled = minigameVersion === ""; const isUninstalled = minigameVersion === "";
const isSupported = !isUninstalled && Number(minigameVersion.split(".")[0]) >= 2; const isSupported = !isUninstalled && Number(minigameVersion.split(".")[0]) >= 2;
if (isUninstalled) { if (isUninstalled) {
return { code: -1, errMsg: "请先安装增强包。" }; return { code: -1, errMsg: "请先安装社区版。" };
} else if (!isSupported) { } else if (!isSupported) {
return { code: -2, errMsg: "安装版本 >= 2.0.0 的增强包,以支持设置面板功能。" }; return { code: -2, errMsg: "安装的社区版版本 >= 2.0.0 ,以支持设置面板功能。" };
} else { } else {
const content = fs.readFileSync(engineWechatMinigameWorkerMainMacroPath, { encoding: "utf-8" }); const content = fs.readFileSync(engineWechatMinigameWorkerMainMacroPath, { encoding: "utf-8" });
@ -96,10 +96,10 @@ function checkAndModifyWorkerFiles() {
if (result.CC_WORKER_ASSET_PIPELINE || result.CC_WORKER_AUDIO_SYSTEM) { if (result.CC_WORKER_ASSET_PIPELINE || result.CC_WORKER_AUDIO_SYSTEM) {
// 没有 Worker 目录与配置的话提醒用户重新安装 // 没有 Worker 目录与配置的话提醒用户重新安装
if (!(gameJson.workers && fs.existsSync(workerDir))) { if (!(gameJson.workers && fs.existsSync(workerDir))) {
Editor.error("你启用了增强包的多线程特性,但未检测到正确的 workers 目录与 game.json 字段,请重新安装增强包详情请查看文档TODO"); Editor.error("你启用了社区版的多线程特性,但未检测到正确的 workers 目录与 game.json 字段,请重新安装社区版详情请查看文档TODO");
} }
} else { } else {
Editor.warn("你禁用了增强包的多线程特性可以手动删除相关文件以减少包体大小详情请查看文档TODO"); Editor.warn("你禁用了社区版的多线程特性可以手动删除相关文件以减少包体大小详情请查看文档TODO");
} }
} }
} }