From 4f412b5c155ac2f2a0bf67d7094a1b892f34b439 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 3 Jul 2023 15:35:11 -0700 Subject: [PATCH] fix refreshc breaking on file paths with spaces --- shadercompiler/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadercompiler/Program.cs b/shadercompiler/Program.cs index d618bee..b41c85f 100644 --- a/shadercompiler/Program.cs +++ b/shadercompiler/Program.cs @@ -238,7 +238,7 @@ partial class Program { Process glslc = Process.Start( "glslc", - $"{glslPath} -o {outputPath}" + $"""{glslPath}"" -o ""{outputPath}""" ); glslc.WaitForExit(); if (glslc.ExitCode != 0) @@ -254,7 +254,7 @@ partial class Program { Process spirvcross = Process.Start( "spirv-cross", - $"{spirvPath} --hlsl --shader-model 50 --output {outputPath}" + $"""{spirvPath}"" --hlsl --shader-model 50 --output ""{outputPath}""" ); spirvcross.WaitForExit(); if (spirvcross.ExitCode != 0)