From cfc3228cc433e580b733353ad3f51d1bbf85eaa9 Mon Sep 17 00:00:00 2001 From: chrg6 Date: Sun, 8 Nov 2026 00:40:25 -0500 Subject: [PATCH] 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 --- nx2navi.ini.example | 8 ++++---- runtime/discord_app.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nx2navi.ini.example b/nx2navi.ini.example index 7b827dff..fb8a3fd9 100644 --- a/nx2navi.ini.example +++ b/nx2navi.ini.example @@ -240,10 +240,10 @@ # change reaches the presence thread at once. # discord_rpc = 0 # The Discord application whose name ("Playing ") and artwork the status shows: its Application ID from -# discord.com/developers/applications (General Information), digits only. Default: the NX2navi application's id -# built in from runtime/discord_app.h (NX2NAVI_DISCORD_APP_ID_DEFAULT); while that is empty and this is unset, the -# presence stays off and the log says so. Register your own application to choose another name and art. -# discord_app_id = +# discord.com/developers/applications (General Information), digits only. Default: the NX2navi application, built +# in from runtime/discord_app.h (NX2NAVI_DISCORD_APP_ID_DEFAULT). Register your own application to choose another +# name and art. +# discord_app_id = 1568862362969309275 # The key of the application's uploaded art asset (Rich Presence > Art Assets) shown as the status's large image. # discord_image = nx2navi_512x512 diff --git a/runtime/discord_app.h b/runtime/discord_app.h index 4a277677..71fbeaeb 100644 --- a/runtime/discord_app.h +++ b/runtime/discord_app.h @@ -11,5 +11,5 @@ // an id of some other application would show that application's name instead of NX2navi. #pragma once -#define NX2NAVI_DISCORD_APP_ID_DEFAULT "" // the NX2navi application's id: digits only, at most 20 -#define NX2NAVI_DISCORD_IMAGE_DEFAULT "nx2navi_512x512" // its large-image art asset key +#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