PostProcessing/FX: Force native paths for includes
This commit is contained in:
parent
4edae3cdd0
commit
b97788a35a
|
@ -50,7 +50,7 @@ static RenderAPI GetRenderAPI()
|
||||||
static bool PreprocessorFileExistsCallback(const std::string& path)
|
static bool PreprocessorFileExistsCallback(const std::string& path)
|
||||||
{
|
{
|
||||||
if (Path::IsAbsolute(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);
|
return Host::ResourceFileExists(path.c_str(), true);
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ static bool PreprocessorReadFileCallback(const std::string& path, std::string& d
|
||||||
{
|
{
|
||||||
std::optional<std::string> rdata;
|
std::optional<std::string> rdata;
|
||||||
if (Path::IsAbsolute(path))
|
if (Path::IsAbsolute(path))
|
||||||
rdata = FileSystem::ReadFileToString(path.c_str());
|
rdata = FileSystem::ReadFileToString(Path::ToNativePath(path).c_str());
|
||||||
else
|
else
|
||||||
rdata = Host::ReadResourceFileToString(path.c_str(), true);
|
rdata = Host::ReadResourceFileToString(path.c_str(), true);
|
||||||
if (!rdata.has_value())
|
if (!rdata.has_value())
|
||||||
|
|
Loading…
Reference in New Issue