diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-04-04 01:16:39 +0300 |
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-04-04 01:45:57 +0300 |
| commit | 403fcb204381fd7a3d40f9924bfad498c3a17b6a (patch) | |
| tree | 3b45a40394d1976a96cdf8e64e46b9b76928bd50 /indra/newview/llpreviewscript.h | |
| parent | a1f682baedea2929806d7c9347b4e51df5986a39 (diff) | |
#3867 Print script errors to disk when external editor is used
Diffstat (limited to 'indra/newview/llpreviewscript.h')
| -rw-r--r-- | indra/newview/llpreviewscript.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llpreviewscript.h b/indra/newview/llpreviewscript.h index 117be03fc6..d0442311d2 100644 --- a/indra/newview/llpreviewscript.h +++ b/indra/newview/llpreviewscript.h @@ -194,7 +194,6 @@ private: S32 mLiveHelpHistorySize; bool mEnableSave; bool mHasScriptData; - LLLiveLSLFile* mLiveFile; LLUUID mAssociatedExperience; bool mScriptRemoved; bool mSaveDialogShown; @@ -215,16 +214,21 @@ class LLScriptEdContainer : public LLPreview public: LLScriptEdContainer(const LLSD& key); - LLScriptEdContainer(const LLSD& key, const bool live); + virtual ~LLScriptEdContainer(); bool handleKeyHere(KEY key, MASK mask); protected: std::string getTmpFileName(const std::string& script_name); + std::string getErrorLogFileName(const std::string& script_path); bool onExternalChange(const std::string& filename); virtual void saveIfNeeded(bool sync = true) = 0; + bool logErrorsToFile(const LLSD& compile_errors); + bool isOpenInExternalEditor() const { return mLiveFile != nullptr; } LLScriptEdCore* mScriptEd; + LLLiveLSLFile* mLiveFile = nullptr; + LLLiveLSLFile* mLiveLogFile = nullptr; }; // Used to view and edit an LSL script from your inventory. |
