diff --git a/project/addons/discord-rpc-gd/bin/windows/discord_game_sdk_binding_debug.dll b/project/addons/discord-rpc-gd/bin/windows/discord_game_sdk_binding_debug.dll index fa186f1..8a64688 100644 Binary files a/project/addons/discord-rpc-gd/bin/windows/discord_game_sdk_binding_debug.dll and b/project/addons/discord-rpc-gd/bin/windows/discord_game_sdk_binding_debug.dll differ diff --git a/project/main.gd b/project/main.gd index 0302425..c8a4f31 100644 --- a/project/main.gd +++ b/project/main.gd @@ -4,3 +4,6 @@ extends Node # Called when the node enters the scene tree for the first time. func _ready(): DiscordSDK.debug() + +func _process(_delta): + DiscordSDK.updatedebug() diff --git a/src/main.cpp b/src/main.cpp index d9df27b..4eb5bae 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,6 +11,7 @@ discord::Core *core{}; void DiscordSDK::_bind_methods() { ClassDB::bind_method(D_METHOD("debug"), &DiscordSDK::debug); + ClassDB::bind_method(D_METHOD("updatedebug"), &DiscordSDK::updatedebug); } DiscordSDK *DiscordSDK::get_singleton() @@ -40,5 +41,8 @@ void DiscordSDK::debug() assets.SetLargeImage("test1"); assets.SetSmallImage("godot"); core->ActivityManager().UpdateActivity(activity, [](discord::Result result) {}); +} +void DiscordSDK::updatedebug() +{ ::core->RunCallbacks(); } \ No newline at end of file diff --git a/src/main.h b/src/main.h index e3d0781..c30b855 100644 --- a/src/main.h +++ b/src/main.h @@ -22,6 +22,7 @@ public: ~DiscordSDK(); void debug(); + void updatedebug(); }; #endif \ No newline at end of file