From 1ec1e21d77cf19713fe86164c5c9ced50c381432 Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Tue, 3 Nov 2026 20:49:51 +0300 Subject: [PATCH] Use the project's own Discord application for Rich Presence The default app id pointed at the application the feature was developed against, owned by the pull request's author. The new one belongs to the project, with the ring icon uploaded as the totk_512x512 art asset. Co-Authored-By: Claude Opus 5.5 --- runtime/cfg.c | 5 ++--- runtime/discord_rpc.c | 2 +- totk.ini.example | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/runtime/cfg.c b/runtime/cfg.c index 520bd902..de418f3c 100644 --- a/runtime/cfg.c +++ b/runtime/cfg.c @@ -151,10 +151,9 @@ static const CfgMeta metas[] = { {"WALK_KEY", "none", NULL, LIVE}, {"WALK_SCALE", "0.51", "0.2..0.9", LIVE}, {"MENU_LANG", "", "en|ru|pt-BR|zh-Hans", LIVE}, {"AMIIBO_DIR", "", NULL, LIVE}, - // Discord Rich Presence (discord_rpc.c): off by default, the Menu tab of the settings menu switches it. The app - // id is the one this was developed against, registered as "TotK Recomp"; the image, the key of its art asset. + // Discord Rich Presence (discord_rpc.c): off by default, the Menu tab of the settings menu switches it. {"DISCORD_RPC", "0", "0|1", LIVE}, - {"DISCORD_APP_ID", "1566609987453722727", NULL, LIVE}, + {"DISCORD_APP_ID", "1567232599846293504", NULL, LIVE}, {"DISCORD_IMAGE", "totk_512x512", NULL, LIVE}, // Advanced: scheduling {"ASYNC_PREEMPT", "1", "0|1|2", RESTART}, {"REPLAY_ASYNC", "1", "0|1", RESTART}, diff --git a/runtime/discord_rpc.c b/runtime/discord_rpc.c index e74f07cb..cdc6265c 100644 --- a/runtime/discord_rpc.c +++ b/runtime/discord_rpc.c @@ -2,7 +2,7 @@ // the local IPC of a running Discord client (platform.h's plat_ipc_*). Nothing leaves the machine but the activity // itself, and nothing is sent while TOTK_DISCORD_RPC is off (the default: the status is information about the // player's session). TOTK_DISCORD_APP_ID names the application whose name and artwork Discord shows — the default -// is the app this feature was developed against, registered as "TotK Recomp"; a player who wants their own name or +// is the project's own application, registered as "TotK Recomp"; a player who wants their own name or // art registers an application at discord.com/developers and puts its id in totk.ini — and TOTK_DISCORD_IMAGE the // key of its uploaded art asset. // diff --git a/totk.ini.example b/totk.ini.example index 0d69e670..f5c28b7e 100644 --- a/totk.ini.example +++ b/totk.ini.example @@ -251,10 +251,10 @@ # 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. # discord_rpc = 0 -# The application whose name and artwork the status shows. The default is the app this feature was developed -# against, registered as "TotK Recomp" with the port's green ring icon as its art. Register your own at +# The application whose name and artwork the status shows. The default is the project's own application, +# registered as "TotK Recomp" with the port's green ring icon as its art. Register your own at # discord.com/developers (name and art are yours to choose) and put its id here. -# discord_app_id = 1566609987453722727 +# discord_app_id = 1567232599846293504 # The key of the application's uploaded art asset shown as the status's large image. # discord_image = totk_512x512