Files
NX2navi/runtime/discord_app.h
chrg6 cfc3228cc4 Build in the NX2navi Discord application's id
The Rich Presence now speaks for the Discord application registered as NX2navi by default, so the status reads
"Playing NX2navi" without an nx2navi.ini entry. The ini example shows the id as discord_app_id's default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 01:25:12 -05:00

16 lines
1.2 KiB
C

// The Discord application NX2navi's Rich Presence (discord_rpc.c) speaks for: the one place its defaults live.
//
// Discord shows the *application's* name above the presence ("Playing <name>") and takes the large image from the
// art assets uploaded to that application; neither comes from the game. So the presence needs an application of its
// own, registered at discord.com/developers/applications under the name NX2navi, with its art uploaded under
// Rich Presence > Art Assets with the key below. Its Application ID (General Information) goes into
// NX2NAVI_DISCORD_APP_ID_DEFAULT; a player can still point at another application with discord_app_id and
// discord_image in nx2navi.ini ([discord]), which take precedence over these defaults.
//
// While the id is empty and nx2navi.ini names none, the presence stays off even with discord_rpc = 1 and logs why:
// an id of some other application would show that application's name instead of NX2navi.
#pragma once
#define NX2NAVI_DISCORD_APP_ID_DEFAULT "1568862362969309275" // the NX2navi application's id: digits, at most 20
#define NX2NAVI_DISCORD_IMAGE_DEFAULT "nx2navi_512x512" // its large-image art asset key