Skip to content

Commit

Permalink
Added being able to pass in your game directory to the build script (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mahgo authored Dec 25, 2021
1 parent 684f135 commit c779a04
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ param (
[switch]$Build = $false,
[switch]$Install = $false,
[string]$OutputDirectory = "..\src\bin\Release",
[string]$ModDirectory = "Default"
[string]$ModDirectory = "Default",
[string]$GameDirectory = ""
)

# Functions
Expand Down Expand Up @@ -96,7 +97,14 @@ If ($Update)
Write-Host "[CSM Update Script] Please Note: This may break the mod if any major game changes have occured."

# Get the steam directory
$GameDirectory = Read-Host "[CSM Update Script] Please enter your game folder directory. For example, for Windows, 'C:\Program Files\Steam\steamapps\common\Cities_Skylines' for Steam or 'C:\Program Files\Epic Games\CitiesSkylines' for Epic Games."
If ($GameDirectory -eq "")
{
$GameDirectory = Read-Host "[CSM Update Script] Please enter your game folder directory. For example, for Windows, 'C:\Program Files\Steam\steamapps\common\Cities_Skylines' for Steam or 'C:\Program Files\Epic Games\CitiesSkylines' for Epic Games."
}
Else
{
Write-Host "[CSM Update Script] Game directory: $($GameDirectory)"
}

If ($IsMacOS)
{
Expand Down

0 comments on commit c779a04

Please sign in to comment.