summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
AgeCommit message (Collapse)Author
2025-07-30Rename handleDiscordSocial to toggleDiscordIntegrationErik Kundiman
2025-07-30Assemble Discord Activity Details only onceErik Kundiman
by saving it to a static global string for reuse.
2025-07-30Use getAvatars already called for Discord Party numbersErik Kundiman
so we don't have to make any extra getAvatars calls just for this, as it's pricy in crowds, and we'll just be piggybacking `updateSpeakerList` and `updateNearbyList`.
2025-07-30Discord-related error handling/loggingErik Kundiman
plus delay saving Discord credentials to only after the access token is successfully updated on Discord, and try to disconnect from Discord when the integration gets disabled regardless whether there are credentials to delete or not and whether there's an access token to revoke or not.
2025-07-30Tracy visibility for looped Discord function callsErik Kundiman
As suggested by Andrey Kleshchev. They likely can get pricey so they need to be visible in the profiler.
2025-07-30Check Discord creds existence before getting tokenErik Kundiman
as suggested by Andrey Kleshchev, anticipating external factors such as user moving settings from another PC.
2025-07-30Cache bool setting retrievals in updateDiscordActivityErik Kundiman
As suggested by Andrey Kleschev. getBOOL and getF32 are expensive, so using `static LLCachedControl<>` is the way to do it in llappviewer.cpp.
2025-07-28Discord time elapsed not reset on region changeErik Kundiman
Time elapses right after viewer launch even before login. Plus parameter name change in header to make it the same as in implementation.
2025-07-28Discord Rich Presence: Hide name & connect to llappviewer.cppSecret Foxtail
Add option to show/hide avatar name in privacy panel & connect rich presense directly to llappviewer.cpp
2025-07-28Call updateDiscordActivity too in Discord initErik Kundiman
so when the user enables the integration after being logged in, the init can show the name and location right away.
2025-07-28Show Discord Rich Presence Activity PartyErik Kundiman
By setting CurrentSize to the number of people within chat radius, and MaxSize to the number of people within (MP's) near range.
2025-07-28Show display name too on Discord Rich PresenceErik Kundiman
Avatar name cache can be used right away upon login now after I moved the update call to the end of PRECACHE section in llstartup.
2025-07-28Location for Discord Rich Presence Activity StateErik Kundiman
I was going to use LLAgentUI::buildLocationString but there's no location format that shows only region and coords without having to have the parcel name empty, so I copied buildLocationString implementation in the case of LOCATION_FORMAT_NO_MATURITY but when the parcel name is empty. I had to make updateDiscordActivity check agent's ID and the existence of agent avatar pointer first before trying to set Activity Details or State, cause I like the "Show location" button be checkable not only after online when both the ID & pointer will have existed. I think this way is simpler than programmatically enabling the "Show location" button after the user is logged in. I put a trigger to Activity update somewhere after the user is logged in for now, not yet after a TP. The elapsed time gets reset whenever Activity is updated for now, but I'll try to make elapsed time extended instead. No Party for now, because I couldn't find a way to make a Party shown without showing its CurrentSize (I could still get away not showing its MaxSize by setting it to 0), so the State (location) is shown above the elapsed time, not on the right of it. I'll try to figure out to get some representative numbers for its CurrentSize & MaxSize next. Also no privacy on hiding the username for now, until the UI is ready.
2025-07-27Connect to Discord now through privacy tabErik Kundiman
Now the access token is saved the way passwords are saved, but without a username, so we can have some persistence without having to implement an OAuth2 backend server cause we would have to store those tokens there anyway still and that would even require more disclosure that the user token gets saved on a server, and it's just simpler to not go that way. Discord Social SDK doesn't have to have a helper for sending code to a custom server anyway, that we would have to have some asynchronous HTTP requestor ready. Show location check button gets enabled only when Discord integration is enabled, though it's not functioning yet.
2025-07-27Shorten Discord-related local variable namesErik Kundiman
and minimise difference from SL main.
2025-07-27Move Discord-related code to llappviewer.cppErik Kundiman
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.
2025-07-12Rich Presence support using Discord Social SDKErik Kundiman
Download DiscordSocialSdk-1.4.9649.zip https://discord.com/developers/applications/1393451183741599796/social-sdk/downloads to your ~/Downloads folder. Add -DUSE_DISCORD:BOOL=ON to your cmake line. The authorisation is triggered by selecting Help > Discord Social. It seems that the user will need to do this every time they want Rich Presence support on the viewer while using Discord. The Discord app is still set to be a public client in the OAuth2 tab, I'm going to try to make it work with the app set to be a confidential client, next. All Discord-related code are contained within one file, llstartup.cpp, and other classes access it through some opaque layer, static functions, otherwise we'd get these "duplicate symbol" linking errors.
2025-06-23Exclude _M_ARM64 from including media plugin headersErik Kundiman
until we are ready to enable media plugins on Windows ARM64.
2025-06-09Fix usleep implementation for WindowsErik Kundiman
https://stackoverflow.com/questions/5801813/c-usleep-is-obsolete-workarounds-for-windows-mingw
2025-06-08Windows x86-64 without SSE2 will be crashed tooErik Kundiman
2025-06-08Make sure Windows include CEF & Dullahan headersErik Kundiman
and minimise diff related to LibVLC headers.
2025-06-06Revert "Exclude Windows from referring to LibVLC headers"Erik Kundiman
This reverts commit f0de1898e0b6a3b9f1ee1bcc762ba334b78bbcc6.
2025-06-03Exclude Windows from referring to LibVLC headersErik Kundiman
for now, until we are ready to enable media plugins on Windows.
2025-06-03Simple usleep implementation for WindowsErik Kundiman
Just copying from this site and adjusting it for now: https://filipivianna.blogspot.com/2010/07/usleep-on-windows-win32.html
2025-05-22Merge branch 'main' into 2025.04Erik Kundiman
2025-05-11Add basic scaffolding to support reply commands and handle @versionXXX as an ↵Kitty Barnett
illustration
2025-05-11Minimal code needed to add RLVa with an on/off toggleKitty Barnett
2025-05-09Merge tag 'Second_Life_Release#377d1b38-2025.04' into 2025.04Erik Kundiman
2025-05-01#4001 Bump cache versionAndrey Kleshchev
2025-04-30Merge tag 'Second_Life_Release#d9e55c44-Second_Life_Release#d9e55c4-2025.04' ↵Erik Kundiman
into 2025.04
2025-04-19Merge tag 'Second_Life_Release#9a333e65-2025.04' into 2025.04Erik Kundiman
2025-04-18#3758 add support for highlighted segmentsMnikolenko Productengine
2025-04-04#3876 sendLogoutRequest loggingAndrey Kleshchev
mac's crash logs seem to get mixed with normal logs, hope is this will help confirming the issue. Also needed for automated testing.
2025-04-01Merge branch 'release/2025.03' into release/2025.04Jonathan "Geenz" Goodman
2025-04-01Merge tag 'Second_Life_Release#e671cb54-2025.03' into 2025.03Erik Kundiman
2025-03-31#3044 Add option to hide L$ balance for Snapshots with Interface showingMaxim Nikolenko
2025-03-30#3795 Crash at getVolatileAPRPool()Andrey Kleshchev
2025-03-29Merge tag 'Second_Life_Release#6ac1d4f3-2025.03' into 2025.03Erik Kundiman
2025-03-27Use LLCachedControl in llviewerwindow and llappviewerAndrey Kleshchev
Getting from gSavedSettings is expensive to do so often
2025-03-22Merge tag 'Second_Life_Release#0ec9bfaa-2025.03' into 2025.03Erik Kundiman
2025-03-18#3644 Adjust throttle based of how busy buffer isAndrey Kleshchev
2025-03-11Merge branch 'marchcat/maint-b-cherrypicks' into marchcat/2025.03-maint-bAndrey Lihatskiy
2025-03-11#1080 BugSplat Crash: LLAppViewer::initStrings() - show crash reasonAlexander Gavriliuk
2025-03-11viewer-private#217 Cef log was deleted too oftenAndrey Kleshchev
delete once per session, not once per instance # Conflicts: # indra/newview/llviewermedia.cpp
2025-03-06Merge remote-tracking branch 'secondlife/release/2025.03' into 2025.03Erik Kundiman
2025-03-06Merge commit '8c1f00eebc6863c39d0143aeb7e37c68459d454f' into 2025.03Erik Kundiman
2025-03-05#3644 Fix new logging of packet drops hitting performance #2Andrey Kleshchev
Misunderstood how mDroppedPackets worked, clear out what's not needed
2025-03-04#3644 Fix new logging of packet drops hitting performanceAndrey Kleshchev
2025-03-04#3591 rethrow should be mac specificAndrey Kleshchev
Jumped the gun a bit, since reportCrashToBugsplat is OS specific, restore rethrow for other systems.
2025-02-27Merge pull request #3583 'faster avatar loading' into release/2025.03Andrey Kleshchev