diff options
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index e332ef588..16dfe8618 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -176,6 +176,17 @@ struct IncludeHandlerImpl : IncludeHandler return SLANG_OK; } + virtual String simplifyPath(const String& path) override + { + ISlangFileSystemExt* fileSystemExt = _getFileSystemExt(); + ComPtr<ISlangBlob> simplifiedPath; + if (SLANG_FAILED(fileSystemExt->getSimplifiedPath(path.Buffer(), simplifiedPath.writeRef()))) + { + return path; + } + return StringUtil::getString(simplifiedPath); + } + }; // |
