Describe the bug
The game crashes on exit if compiled with discord rpc support on linux.
To Reproduce
Steps to reproduce the behavior:
- Clone the repo, and build with the following flags:
make -j4 DISCORDRPC=1
- cd build/us_pc/; ./sm64.us.f3dex2e
(You need to be cd'd into the us_pc directory for it to load the libdiscord-rpc.so.)
- After the game launches, click on the exit button, or try to exit from within the game menu.
- See error
Expected behavior
The game should exit cleanly without a segmentation fault.
Screenshots
Desktop (please complete the following information):
- OS: Arch Linux (KDE Plasma, Wayland, x64)
- Version
6.18.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 18 Dec 2025 18:00:18 +0000 x86_64 GNU/Linux
Additional context
The discordrpc function does seem to work while the game is actually running, it reports the game and shows up on discord.
Describe the bug
The game crashes on exit if compiled with discord rpc support on linux.
To Reproduce
Steps to reproduce the behavior:
make -j4 DISCORDRPC=1
(You need to be cd'd into the us_pc directory for it to load the libdiscord-rpc.so.)
Expected behavior
The game should exit cleanly without a segmentation fault.
Screenshots
Desktop (please complete the following information):
6.18.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 18 Dec 2025 18:00:18 +0000 x86_64 GNU/LinuxAdditional context
The discordrpc function does seem to work while the game is actually running, it reports the game and shows up on discord.