Add open-config script, VS Code tasks, and vanilla file warnings
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user