Skip to content

Commit

Permalink
应该要阻止启动
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jul 29, 2024
1 parent ad043cb commit 3c0c5f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/launchGame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class GameLauncher {
if (res !== '仍要启动') {
return false;
}
return true;
}
}

Expand All @@ -33,7 +34,10 @@ export class GameLauncher {
}

await vscode.workspace.fs.createDirectory(vscode.Uri.joinPath(env.scriptUri!, '.log'));
await this.runPlugin();
let suc = await this.runPlugin();
if (!suc) {
return false;
}

let args = [];
args.push('type@editor_game');
Expand Down

0 comments on commit 3c0c5f2

Please sign in to comment.