mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2025-10-31 21:50:44 +07:00
windows fixes
This commit is contained in:
parent
d50dcdf354
commit
9f7b9a884c
26
.vscode/buildEffects.ps1
vendored
Normal file
26
.vscode/buildEffects.ps1
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
# buildEffects
|
||||
# Compiles all .fx files found in the project's Content directory.
|
||||
# Intended for usage with VS Code Build Tasks tooling.
|
||||
# You may need to change the path to fxc.exe depending on your installation.
|
||||
|
||||
Write-Output "Starting build process..."
|
||||
|
||||
Set-Location $PSScriptRoot
|
||||
Set-Location ../project_name
|
||||
|
||||
|
||||
$fxc = "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86\fxc.exe"
|
||||
|
||||
$files = Get-ChildItem -Path "Content\*" -Recurse -Include *fx
|
||||
|
||||
foreach ($file in $files)
|
||||
{
|
||||
$fileName = $file.BaseName
|
||||
$filePath = $file.FullName
|
||||
& $fxc /T fx_2_0 $filePath /Fo "${filePath}b"
|
||||
|
||||
Write-Output "Built ${fileName}.fx to ${filePath}b"
|
||||
}
|
||||
|
||||
|
||||
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@ -76,7 +76,6 @@
|
||||
"windows":{
|
||||
"command": "start",
|
||||
"args": [
|
||||
"/wait",
|
||||
"${workspaceFolder}/project_name/bin/Debug/project_name.exe"
|
||||
]
|
||||
},
|
||||
@ -94,7 +93,6 @@
|
||||
"windows":{
|
||||
"command": "start",
|
||||
"args": [
|
||||
"/wait",
|
||||
"${workspaceFolder}/project_name/bin/Release/project_name.exe"
|
||||
]
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user