summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorMike <contact@mikelittman.me>2026-10-23 09:49:49 -0400
committerGitHub <noreply@github.com>2026-10-23 21:49:49 +0800
commitf378dc9d6b8f74d34b4dfd3b65cf564c689bdb95 (patch)
tree2043cee9aec99862882a0d5cb2423ad1ccfb02ea /indra/newview/llappviewer.cpp
parentadc157b9572574f623e0d7c497ff204da5050a2e (diff)
Add a loopback MCP server for the running viewer (#44)
The server is off by default and listens on 127.0.0.1. It can see and act in the logged-in session, including inventory, object contents, script editing, mesh and material upload, and animated mesh.
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 0ce41bf773..26542a29c6 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -61,6 +61,7 @@
#include "llmimetypes.h"
#include "llslurl.h"
#include "llstartup.h"
+#include "llviewermcp.h"
#include "llfocusmgr.h"
#include "llurlfloaterdispatchhandler.h"
#include "llviewerjoystick.h"
@@ -1862,6 +1863,7 @@ void LLAppViewer::flushLFSIO()
bool LLAppViewer::cleanup()
{
+ LLViewerMCP::shutdown();
#if LL_VELOPACK
// Apply any pending Velopack update before shutdown
if (velopack_is_update_pending())
@@ -5389,6 +5391,7 @@ void LLAppViewer::idle()
{
LL_PROFILE_ZONE_SCOPED_CATEGORY_APP;
pingMainloopTimeout("Main:Idle");
+ LLViewerMCP::pump();
// Update frame timers
static LLTimer idle_timer;