scummvm
scummvm copied to clipboard
NOTTESTED: DISCORD: load discord library dynamically
discord-rpc.dll has higher OS requrements than scummvm itself. Allow its loading to be skipped. Do the same on other platforms with discord for simplicity and possibly a small benefit.
Just curious, what is the OS requirement that discord-rpc.dll has that scummvm.exe doesn't? We don't configure the Win9x or XP builds to include discord, and the last release of discord-rpc.dll was in 2018, and the library has been deprecated. As far as I know, discord-rpc.dll works on Windows 7, so is it a Vista problem?
I have no objection to linking to discord dynamically, but I'm interested in the specific incompatibility this fixes.
In fact I just noticed that in the buildbot I compiled discord-rpc statically. This change would then break the buildbot.
Same for the Win32 release buildbot - I just noticed that the discord-rpc.dll I ship with the builds is not necessary at all.
As far as I know, discord-rpc.dll works on Windows 7, so is it a Vista problem?
discord-rpc.dll requires Vista or higher - that's why I exclude it from the Windows XP builds.
Do you know what is missing? Does this mean that building statically with discord-rpc makes the binary incompatible with XP?
IIRC, the Discord stuff was one of the main reasons why I did started splitting the Windows XP builds from the "general" variant. The issue was that with Discord support enabled, it failed to run on Windows XP. I don't remember if I ever tried to build it dynamically though - but I am 99,9% confident that it breaks XP when building statically.
For this reason, I disable Discord support entirely on Windows XP.
discord/discord-rpc@b0e31a9e25c556830b3d28319ff994ee3773cf4c added Windows XP support. Maybe that statically link with a mingw version of discord-rpc (what we do) makes it work on XP?
Uh, then I need to revisit this after the release (my toolchain is due for an update anyways) - I thought I was using the very latest version already.
What is the status of this PR? Is this change still needed, now that Windows XP is supported in the Discord code?
Closing this