summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-11-19 04:14:48 -0500
committerGitHub <noreply@github.com>2020-11-19 01:14:48 -0800
commitb59451020eee59cd52e4d8231360ebed4fc59adb (patch)
treea5a77794097ee99bbef91b8f28be8788284e7736 /source/slang/slang.cpp
parentac41b9956681d54f4487ff06922017f2753d0c45 (diff)
File system refactor (#1611)
* #include an absolute path didn't work - because paths were taken to always be relative. * WIP FileSystem refactor. * Made loadFile load the file in binary mode. * Fixed some comments. Fixed typo in RelativePath - not used 'fixedPath'.
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index d61814136..063a84bbe 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -3043,7 +3043,7 @@ void Linkage::setFileSystem(ISlangFileSystem* inFileSystem)
// If nullptr passed in set up default
if (inFileSystem == nullptr)
{
- m_cacheFileSystem = new Slang::CacheFileSystem(Slang::OSFileSystemExt::getSingleton());
+ m_cacheFileSystem = new Slang::CacheFileSystem(Slang::OSFileSystem::getExtSingleton());
m_fileSystemExt = m_cacheFileSystem;
}
else
@@ -4245,7 +4245,7 @@ SLANG_API SlangResult spEnableReproCapture(
return SLANG_OK;
}
-SLANG_API SlangResult spExtractRepro(SlangSession* session, const void* reproData, size_t reproDataSize, ISlangFileSystemExt* fileSystem)
+SLANG_API SlangResult spExtractRepro(SlangSession* session, const void* reproData, size_t reproDataSize, ISlangMutableFileSystem* fileSystem)
{
using namespace Slang;
SLANG_UNUSED(session);