From fe09e0da415899e356092f33e2f26025f81a32fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 8 Oct 2024 16:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=BC=80=E6=A8=A1=E5=BC=8F=E8=BF=98?= =?UTF-8?q?=E6=98=AF=E7=94=A8=E5=8E=9F=E6=9D=A5=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/launchGame.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/launchGame.ts b/src/launchGame.ts index 8b35dab..20c3676 100644 --- a/src/launchGame.ts +++ b/src/launchGame.ts @@ -47,15 +47,17 @@ export class GameLauncher { } let args = []; - args.push('type@client'); if (options?.multi) { + args.push('type@editor_game'); args.push('subtype@editor_multi_game'); args.push('role_ids@' + options.multi.join('#')); + args.push('editor_map_path@' + projectUri.fsPath); } else { + args.push('type@client'); args.push('subtype@local_battle'); + args.push('path@' + projectUri.fsPath); } args.push('release@true'); - args.push('path@' + projectUri.fsPath); args.push('lua_dummy@sp ce'); if (options?.luaArgs) { for (let key in options.luaArgs) {