Files
lyndas_mod/.kilo/scripts/open-config.ps1
T

18 lines
402 B
PowerShell

# Open a 7D2D game config file in VS Code
# Usage: .kilo/scripts/open-config.ps1 -Filename "archetypes.xml"
param(
[Parameter(Mandatory=$true)]
[string]$Filename
)
$gameConfigPath = "C:\Steam\steamapps\common\7 Days To Die\Data\Config"
$filePath = Join-Path $gameConfigPath $Filename
if (-not (Test-Path $filePath)) {
Write-Error "File not found: $filePath"
exit 1
}
code $filePath