From b97788a35a4b785008d062cd0ad5e96869bea996 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 27 Nov 2024 13:18:11 +1000 Subject: [PATCH] PostProcessing/FX: Force native paths for includes --- src/util/postprocessing_shader_fx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/postprocessing_shader_fx.cpp b/src/util/postprocessing_shader_fx.cpp index 1fdb70490..4f3445a7b 100644 --- a/src/util/postprocessing_shader_fx.cpp +++ b/src/util/postprocessing_shader_fx.cpp @@ -50,7 +50,7 @@ static RenderAPI GetRenderAPI() static bool PreprocessorFileExistsCallback(const std::string& path) { if (Path::IsAbsolute(path)) - return FileSystem::FileExists(path.c_str()); + return FileSystem::FileExists(Path::ToNativePath(path).c_str()); return Host::ResourceFileExists(path.c_str(), true); } @@ -59,7 +59,7 @@ static bool PreprocessorReadFileCallback(const std::string& path, std::string& d { std::optional rdata; if (Path::IsAbsolute(path)) - rdata = FileSystem::ReadFileToString(path.c_str()); + rdata = FileSystem::ReadFileToString(Path::ToNativePath(path).c_str()); else rdata = Host::ReadResourceFileToString(path.c_str(), true); if (!rdata.has_value())