Skip to content

Commit

Permalink
多开模式还是用原来的参数
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Oct 8, 2024
1 parent 374b795 commit fe09e0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/launchGame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe09e0d

Please sign in to comment.