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 4404983..aba6988 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 9a5d8d1..d46940b 100644 --- a/project/main.gd +++ b/project/main.gd @@ -1,9 +1,10 @@ extends Node func _ready(): - DiscordSDK.app_id = 918857075105349632 - DiscordSDK.details = "Made with GDExtension" - DiscordSDK.state = "This is a test from GDScript in Godot 4" + DiscordSDK.debug() + #DiscordSDK.app_id = 918857075105349632 + #DiscordSDK.details = "Made with GDExtension" + #DiscordSDK.state = "This is a test from GDScript in Godot 4" - DiscordSDK.refresh() - $Info.text = $Info.text.replace("{id}",str(DiscordSDK.app_id)).replace("{details}",DiscordSDK.details).replace("{state}",DiscordSDK.state) + #DiscordSDK.refresh() + #$Info.text = $Info.text.replace("{id}",str(DiscordSDK.app_id)).replace("{details}",DiscordSDK.details).replace("{state}",DiscordSDK.state) diff --git a/src/main.cpp b/src/main.cpp index 6a7460e..2cc973b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -53,9 +53,10 @@ void DiscordSDK::debug() discord::Activity debugactivity{}; debugactivity.SetState("Test from Godot!"); debugactivity.SetDetails("I worked months on this"); - discord::ActivityAssets debugassets = debugactivity.GetAssets(); - debugassets.SetLargeImage("test1"); - debugassets.SetSmallImage("godot"); + debugactivity.GetAssets().SetLargeImage("test1"); + debugactivity.GetAssets().SetLargeText("wow test text for large image"); + debugactivity.GetAssets().SetSmallImage("godot"); + debugactivity.GetAssets().SetSmallText("wow test text for small image"); core->ActivityManager().UpdateActivity(debugactivity, [](discord::Result debugresult) {}); }