Skip to content

Commit

Permalink
KE will now validate multiple mods
Browse files Browse the repository at this point in the history
  • Loading branch information
joelAVS committed Sep 29, 2024
1 parent c0b66ca commit 2a64b9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Syntax highlighting features and code snippets for Victoria II modding.",
"publisher": "TGCModdingTeam",
"main": "./src/built/extension.js",
"version": "2.4.0",
"version": "2.4.1",
"icon": "/images/icon.png",
"engines": {
"vscode": "^1.92.0"
Expand Down
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ export function activate(context: vscode.ExtensionContext) {
const terminal = vscode.window.createTerminal('KatEngine Validation');
terminal.show();
terminal.sendText(`cd "${vic2RootFolder}"`);
terminal.sendText(`.\\KatEngine.exe -validate -mod ${selectedMods.join(' ')}`);
const modifiedMods = selectedMods.map(mod => `-mod=mod/${mod}`);
terminal.sendText(`.\\KatEngine.exe -validate ${modifiedMods.join(' ')}`);

deleteAndOpenFile(scenarioErrorsPath, treeDataProvider);
}),
Expand Down

0 comments on commit 2a64b9f

Please sign in to comment.