Fix custom shader edits to write the exact editor contents to disk

This commit is contained in:
baldurk
2021-05-17 11:55:14 +01:00
parent 4a9d32db3f
commit 331db5b4ba
4 changed files with 36 additions and 2 deletions
+8
View File
@@ -963,6 +963,14 @@ QWidget.
)");
virtual void AddWatch(const rdcstr &expression) = 0;
DOCUMENT(R"(Return the current text of source files within the viewer. Primarily useful for
returning any edits applied when editing a shader.
:return: The current file contents as a list of (filename, contents) pairs.
:rtype: List[Tuple[str,str]]
)");
virtual rdcstrpairs GetCurrentFileContents() = 0;
protected:
IShaderViewer() = default;
~IShaderViewer() = default;