From 403fcb204381fd7a3d40f9924bfad498c3a17b6a Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Fri, 4 Apr 2025 01:16:39 +0300 Subject: #3867 Print script errors to disk when external editor is used --- indra/newview/llpreviewscript.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'indra/newview/llpreviewscript.h') 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. -- cgit v1.3