fix: Discord status starts on Windows #1539

Merged
NotRexed merged 1 commit from fix/discord-windows into main 2026-11-10 07:19:38 +00:00
NotRexed commented 2026-11-10 07:19:29 +00:00 (Migrated from github.com)

The Discord status (host/discord_rpc.c, #1485) was started only from the Linux build's main (inside #ifndef _WIN32). On Windows it never ran: no status, and no discord: line in any log. Found while checking the v2.0.12 candidate's verify logs. This starts it on Windows too, after the argument loop, so a --prepare-shaders run, which returns inside that loop, never starts it. HOS_DISCORD=0 and the menu row still turn it off.

Tested: compiles cleanly (-Wall -Wextra; the three warnings are pre-existing). An in-game check (the log's discord: lines with a Discord client running) is next, on the release build.

🤖 Generated with Claude Code

The Discord status (`host/discord_rpc.c`, #1485) was started only from the Linux build's `main` (inside `#ifndef _WIN32`). On Windows it never ran: no status, and no `discord:` line in any log. Found while checking the v2.0.12 candidate's verify logs. This starts it on Windows too, after the argument loop, so a `--prepare-shaders` run, which returns inside that loop, never starts it. `HOS_DISCORD=0` and the menu row still turn it off. Tested: compiles cleanly (`-Wall -Wextra`; the three warnings are pre-existing). An in-game check (the log's `discord:` lines with a Discord client running) is next, on the release build. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Commenting is not possible because the repository is archived.
No description provided.