summaryrefslogtreecommitdiff
path: root/indra/newview/llluamanager.h
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2023-09-06 14:09:00 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2023-09-06 14:09:00 +0300
commitb51cef8c8eaafa873f2a62d967cc4fe62cc0d94e (patch)
tree73c563d2ca1125319de81f375b45693e651be0d6 /indra/newview/llluamanager.h
parentc8711f4ea5d941d12ae7e6cf99302bfc3211dd3c (diff)
addcallback to display error msg
Diffstat (limited to 'indra/newview/llluamanager.h')
-rw-r--r--indra/newview/llluamanager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llluamanager.h b/indra/newview/llluamanager.h
index d31f159480..5bdf58bd3d 100644
--- a/indra/newview/llluamanager.h
+++ b/indra/newview/llluamanager.h
@@ -30,8 +30,10 @@
class LLLUAmanager
{
public:
- static void runScriptFile(const std::string &filename);
- static void runScriptLine(const std::string &cmd);
+ typedef std::function<void(std::string msg)> script_finished_fn;
+
+ static void runScriptFile(const std::string &filename, script_finished_fn cb = script_finished_fn());
+ static void runScriptLine(const std::string &cmd, script_finished_fn cb = script_finished_fn());
};