diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-07-27 14:26:47 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-07-27 14:26:47 +0800 |
commit | dccf087d652ecf98d24927a397c38cc0c9db3ab4 (patch) | |
tree | 5674accffb95357ed057da983f1886f73e5151a1 /indra/newview/llviewermenu.cpp | |
parent | 145ae5aeea43080bbf14de66d3d3886e01b8bb34 (diff) |
Move Discord-related code to llappviewer.cpp
The doFrame is the one called over and over again, so running the
Discord callbacks from there shouldn't have one extra function
overhead, while running the Discord initialisation is only once so
it's much more okay to have the extra function overhead there.
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 4383fc87e5..2c022d0a4c 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -144,6 +144,7 @@ #include "llwindow.h" #include "llpathfindingmanager.h" #include "llstartup.h" +#include "llappviewer.h" #include "boost/unordered_map.hpp" #include <boost/regex.hpp> #include <boost/algorithm/string.hpp> @@ -8945,7 +8946,7 @@ void handle_report_bug(const LLSD& param) #ifdef LL_DISCORD void handle_discord_social(const LLSD& param) { - LLStartUp::handleDiscordSocial(); + LLAppViewer::handleDiscordSocial(); } #endif |