Skip to content

Commit

Permalink
Bonus - Added Visual Studio launch profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
penev92 committed Mar 22, 2023
1 parent aaed265 commit 48a0b10
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
27 changes: 18 additions & 9 deletions OpenRA.Mods.D2/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
{
"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"
}
}
}
}

0 comments on commit 48a0b10

Please sign in to comment.