diff --git a/Src/Shaders/CompileShaders.cmd b/Src/Shaders/CompileShaders.cmd index 2b9eb400f..873e8bc2f 100644 --- a/Src/Shaders/CompileShaders.cmd +++ b/Src/Shaders/CompileShaders.cmd @@ -40,7 +40,10 @@ if exist %PCFXC% goto continue set PCFXC=fxc.exe :continue -@if %CompileShadersOutput%.==. set CompileShadersOutput=Compiled +if not defined CompileShadersOutput set CompileShadersOutput=Compiled +set StrTrim=%CompileShadersOutput%## +set StrTrim=%StrTrim: ##=% +set CompileShadersOutput=%StrTrim:##=% @if not exist %CompileShadersOutput% mkdir %CompileShadersOutput% call :CompileShader%1 AlphaTestEffect vs VSAlphaTest call :CompileShader%1 AlphaTestEffect vs VSAlphaTestNoFog