Bring back the switch for Discord Rich Presence, in the game's Game tab and in the launcher's Settings.

The presence is off by default and its only switch was a row of the settings menu's Menu tab, which the Ocarina menu
left out, so it could be turned on only by editing nx2navi.ini. The row is in the Game tab now, and the launcher's
Settings has a Discord Status row that writes discord_rpc to the game's nx2navi.ini (launcher/gameini.py, which
reads the file as runtime/cfg.c does and changes only the line it sets). The connection itself works: the installed
game's --probe-discord connects and sets the status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-09 08:51:07 -05:00
parent f58ad1d23e
commit 7fc21407c3
6 changed files with 126 additions and 6 deletions

View File

@@ -334,8 +334,8 @@
[discord]
# Rich Presence: "Playing NX2navi" with the play time in your Discord status while the game runs, through the
# local IPC of a running Discord client. 1 = on; the Menu tab of the settings menu (F1) switches it too, and the
# change reaches the presence thread at once.
# local IPC of a running Discord client. 1 = on; the Game tab of the settings menu (F1) and the launcher's Settings
# switch it too, and a change in the menu reaches the presence thread at once.
# discord_rpc = 0
# The Discord application whose name ("Playing <name>") and artwork the status shows: its Application ID from
# discord.com/developers/applications (General Information), digits only. Default: the NX2navi application, built