From 48a0b105b8e0f6e19cfd44e4510d98a87695760d Mon Sep 17 00:00:00 2001 From: penev92 Date: Tue, 21 Mar 2023 16:53:52 +0200 Subject: [PATCH] Bonus - Added Visual Studio launch profiles --- .vscode/launch.json | 2 +- OpenRA.Mods.D2/Properties/launchSettings.json | 27 ++++++++++++------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 97946c1..5a16d16 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -19,7 +19,7 @@ "type": "coreclr", "request": "launch", "program": "${workspaceRoot}/engine/bin/OpenRA.Utility.dll", - "args": ["d2", "--docs", "{DEV_VERSION}"], + "args": ["d2", "--check-yaml"], "env": { "ENGINE_DIR": "${workspaceRoot}/engine", "MOD_SEARCH_PATHS": "${workspaceRoot}/mods, ${workspaceRoot}/engine/mods" diff --git a/OpenRA.Mods.D2/Properties/launchSettings.json b/OpenRA.Mods.D2/Properties/launchSettings.json index 8304595..adfa019 100644 --- a/OpenRA.Mods.D2/Properties/launchSettings.json +++ b/OpenRA.Mods.D2/Properties/launchSettings.json @@ -1,9 +1,18 @@ -{ - "profiles": { - "OpenRA.Mods.D2": { - "commandName": "Executable", - "executablePath": "..\\..\\engine\\bin\\OpenRA.exe", - "commandLineArgs": "Engine.EngineDir=\"..\\..\\engine\" Engine.LaunchPath=..\\..\\engine\\bin \"Engine.ModSearchPaths=..\\..\\mods,..\\..\\engine\\mods\" Game.Mod=d2" - } - } -} \ No newline at end of file +{ + "profiles": { + "OpenRA.Mods.D2": { + "commandName": "Executable", + "executablePath": "..\\..\\engine\\bin\\OpenRA.exe", + "commandLineArgs": "Game.Mod=d2 Engine.EngineDir=..\\..\\engine Engine.LaunchPath=..\\..\\engine\\bin Engine.ModSearchPaths=..\\..\\mods,..\\..\\engine\\mods Debug.DisplayDeveloperSettings=true" + }, + "Utility": { + "commandName": "Executable", + "executablePath": "..\\..\\engine\\bin\\OpenRA.Utility.exe", + "commandLineArgs": "d2 --check-yaml", + "environmentVariables": { + "ENGINE_DIR": "..\\..\\engine", + "MOD_SEARCH_PATHS": "..\\..\\mods,..\\..\\engine\\mods" + } + } + } +}