Modularize Discord RPC (#247)

This commit delegates all Discord-related functions to DiscordManager.gd and adds a project setting bool to toggle using Discord RPC at all. Toggling off will reduce cpu and memory overhead when Discord is not needed.
This commit is contained in:
Jeod
2025-09-26 09:56:44 -04:00
committed by GitHub
parent c2eafee352
commit 1c309ce731
9 changed files with 72 additions and 29 deletions

View File

@@ -24,6 +24,7 @@ boot_splash/show_image=false
boot_splash/fullsize=false
boot_splash/use_filter=false
config/icon="res://icon.png"
use_discord=true
[autoload]
@@ -32,8 +33,8 @@ ModLoader="*res://addons/mod_loader/mod_loader.gd"
Global="*res://Scenes/Prefabs/Global.tscn"
Settings="*res://Scenes/Prefabs/Autoload/Settings.tscn"
SaveManager="*res://Scripts/Classes/Singletons/SaveManager.gd"
DiscordManager="*res://Scripts/Classes/Singletons/DiscordManager.gd"
AudioManager="*res://Scenes/Prefabs/Autoload/AudioManager.tscn"
DiscordRPCLoader="*res://addons/discord-rpc-gd/nodes/discord_autoload.gd"
BetterTerrain="*res://addons/better-terrain/BetterTerrain.gd"
GameBanana="*res://Scripts/Classes/Singletons/GameBananaManager.gd"
SpeedrunHandler="*res://Scripts/Classes/Singletons/SpeedrunHandler.gd"